Re: [akka-user] Re: Memory leak: unexpected mailbox filling up

2016-10-06 Thread Viktor Klang
happy hakking!

On Thu, Oct 6, 2016 at 6:19 PM, Alexander Lukyanchikov <
alexanderlukyanchi...@gmail.com> wrote:

> Yes, it is. Now it's clear. Thank you.
>
> On Thursday, October 6, 2016 at 6:04:22 PM UTC+3, √ wrote:
>>
>> My guess is that your default dispatcher has ~30 threads
>>
>> --
>> Cheers,
>> √
>>
>> On Oct 6, 2016 10:03, "Viktor Klang"  wrote:
>>
>>> Of course it builds up if you can't process the messages equal-or-faster
>>> than you get them?
>>>
>>> --
>>> Cheers,
>>> √
>>>
>>> On Oct 6, 2016 09:49, "Alexander Lukyanchikov" 
>>> wrote:
>>>

 Sorry guys, quick update:

 Time interval actually affects the situation: if actor job time <
 scheduler interval, everything is good, no matter how many actors we have.

 When actor job time > scheduler interval and ACTOR_COUNT < 30,
 envelopes filling up and not garbage collected (millions of them after a
 few hours).
 *But if I increase ACTOR_COUNT up to 30, GC starts to delete those
 not-delivered messages, according to the profiler.*

 Why? Looks like something in Akka starts working differently after that
 magic threshold.

 Any ideas?


 --
 >> Read the docs: http://akka.io/docs/
 >> Check the FAQ: http://doc.akka.io/docs/akka/c
 urrent/additional/faq.html
 >> Search the archives: https://groups.google.com/grou
 p/akka-user
 ---
 You received this message because you are subscribed to the Google
 Groups "Akka User List" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to akka-user+...@googlegroups.com.
 To post to this group, send email to akka...@googlegroups.com.
 Visit this group at https://groups.google.com/group/akka-user.
 For more options, visit https://groups.google.com/d/optout.

>>> --
> >> Read the docs: http://akka.io/docs/
> >> Check the FAQ: http://doc.akka.io/docs/akka/
> current/additional/faq.html
> >> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Cheers,
√

-- 
>>  Read the docs: http://akka.io/docs/
>>  Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>  Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


Re: [akka-user] Re: Memory leak: unexpected mailbox filling up

2016-10-06 Thread Alexander Lukyanchikov
Yes, it is. Now it's clear. Thank you.

On Thursday, October 6, 2016 at 6:04:22 PM UTC+3, √ wrote:
>
> My guess is that your default dispatcher has ~30 threads
>
> -- 
> Cheers,
> √
>
> On Oct 6, 2016 10:03, "Viktor Klang"  
> wrote:
>
>> Of course it builds up if you can't process the messages equal-or-faster 
>> than you get them?
>>
>> -- 
>> Cheers,
>> √
>>
>> On Oct 6, 2016 09:49, "Alexander Lukyanchikov" > > wrote:
>>
>>>
>>> Sorry guys, quick update:
>>>
>>> Time interval actually affects the situation: if actor job time < 
>>> scheduler interval, everything is good, no matter how many actors we have.
>>>
>>> When actor job time > scheduler interval and ACTOR_COUNT < 30, envelopes 
>>> filling up and not garbage collected (millions of them after a few hours).
>>> *But if I increase ACTOR_COUNT up to 30, GC starts to delete those 
>>> not-delivered messages, according to the profiler.*
>>>
>>> Why? Looks like something in Akka starts working differently after that 
>>> magic threshold.
>>>
>>> Any ideas?
>>>  
>>>
>>> -- 
>>> >> Read the docs: http://akka.io/docs/
>>> >> Check the FAQ: 
>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>> >> Search the archives: 
>>> https://groups.google.com/group/akka-user
>>> --- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Akka User List" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to akka-user+...@googlegroups.com .
>>> To post to this group, send email to akka...@googlegroups.com 
>>> .
>>> Visit this group at https://groups.google.com/group/akka-user.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>

-- 
>>  Read the docs: http://akka.io/docs/
>>  Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>  Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


Re: [akka-user] Re: Memory leak: unexpected mailbox filling up

2016-10-06 Thread Konrad Malawski
That problem does not happen in Akka Streams, it explicitly manages
flow-control by the way.

On Thu, Oct 6, 2016 at 10:03 AM, Viktor Klang 
wrote:

> Of course it builds up if you can't process the messages equal-or-faster
> than you get them?
>
> --
> Cheers,
> √
>
> On Oct 6, 2016 09:49, "Alexander Lukyanchikov" <
> alexanderlukyanchi...@gmail.com> wrote:
>
>>
>> Sorry guys, quick update:
>>
>> Time interval actually affects the situation: if actor job time <
>> scheduler interval, everything is good, no matter how many actors we have.
>>
>> When actor job time > scheduler interval and ACTOR_COUNT < 30, envelopes
>> filling up and not garbage collected (millions of them after a few hours).
>> *But if I increase ACTOR_COUNT up to 30, GC starts to delete those
>> not-delivered messages, according to the profiler.*
>>
>> Why? Looks like something in Akka starts working differently after that
>> magic threshold.
>>
>> Any ideas?
>>
>>
>> --
>> >> Read the docs: http://akka.io/docs/
>> >> Check the FAQ: http://doc.akka.io/docs/akka/c
>> urrent/additional/faq.html
>> >> Search the archives: https://groups.google.com/group/akka-user
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Akka User List" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to akka-user+unsubscr...@googlegroups.com.
>> To post to this group, send email to akka-user@googlegroups.com.
>> Visit this group at https://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> >> Read the docs: http://akka.io/docs/
> >> Check the FAQ: http://doc.akka.io/docs/akka/
> current/additional/faq.html
> >> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Cheers,
Konrad 'ktoso' Malawski
Akka  @ Typesafe 

-- 
>>  Read the docs: http://akka.io/docs/
>>  Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>  Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


Re: [akka-user] Re: Memory leak: unexpected mailbox filling up

2016-10-06 Thread Viktor Klang
Of course it builds up if you can't process the messages equal-or-faster
than you get them?

-- 
Cheers,
√

On Oct 6, 2016 09:49, "Alexander Lukyanchikov" <
alexanderlukyanchi...@gmail.com> wrote:

>
> Sorry guys, quick update:
>
> Time interval actually affects the situation: if actor job time <
> scheduler interval, everything is good, no matter how many actors we have.
>
> When actor job time > scheduler interval and ACTOR_COUNT < 30, envelopes
> filling up and not garbage collected (millions of them after a few hours).
> *But if I increase ACTOR_COUNT up to 30, GC starts to delete those
> not-delivered messages, according to the profiler.*
>
> Why? Looks like something in Akka starts working differently after that
> magic threshold.
>
> Any ideas?
>
>
> --
> >> Read the docs: http://akka.io/docs/
> >> Check the FAQ: http://doc.akka.io/docs/akka/
> current/additional/faq.html
> >> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
>>  Read the docs: http://akka.io/docs/
>>  Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>  Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


Re: [akka-user] Re: Memory leak: unexpected mailbox filling up

2016-10-06 Thread Viktor Klang
My guess is that your default dispatcher has ~30 threads

-- 
Cheers,
√

On Oct 6, 2016 10:03, "Viktor Klang"  wrote:

> Of course it builds up if you can't process the messages equal-or-faster
> than you get them?
>
> --
> Cheers,
> √
>
> On Oct 6, 2016 09:49, "Alexander Lukyanchikov" <
> alexanderlukyanchi...@gmail.com> wrote:
>
>>
>> Sorry guys, quick update:
>>
>> Time interval actually affects the situation: if actor job time <
>> scheduler interval, everything is good, no matter how many actors we have.
>>
>> When actor job time > scheduler interval and ACTOR_COUNT < 30, envelopes
>> filling up and not garbage collected (millions of them after a few hours).
>> *But if I increase ACTOR_COUNT up to 30, GC starts to delete those
>> not-delivered messages, according to the profiler.*
>>
>> Why? Looks like something in Akka starts working differently after that
>> magic threshold.
>>
>> Any ideas?
>>
>>
>> --
>> >> Read the docs: http://akka.io/docs/
>> >> Check the FAQ: http://doc.akka.io/docs/akka/c
>> urrent/additional/faq.html
>> >> Search the archives: https://groups.google.com/group/akka-user
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Akka User List" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to akka-user+unsubscr...@googlegroups.com.
>> To post to this group, send email to akka-user@googlegroups.com.
>> Visit this group at https://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
>>  Read the docs: http://akka.io/docs/
>>  Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>  Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


[akka-user] Re: Memory leak: unexpected mailbox filling up

2016-10-06 Thread Alexander Lukyanchikov

Sorry guys, quick update:

Time interval actually affects the situation: if actor job time < scheduler 
interval, everything is good, no matter how many actors we have.

When actor job time > scheduler interval and ACTOR_COUNT < 30, envelopes 
filling up and not garbage collected (millions of them after a few hours).
*But if I increase ACTOR_COUNT up to 30, GC starts to delete those 
not-delivered messages, according to the profiler.*

Why? Looks like something in Akka starts working differently after that 
magic threshold.

Any ideas?
 

-- 
>>  Read the docs: http://akka.io/docs/
>>  Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>  Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.