OMG. I better stop using ConsistentHashing routing then. Bummer.

Regards,Dima Gutzeit

On Thu, Aug 13, 2015 at 2:38 PM, Akka Team <akka.offic...@gmail.com>
wrote:

> Hi Dima,
> as far as I can see the implementation is quite wasteful in creating these
> ConsistentActorRef wrappers (100K for every message send in your case).
> 2.3.12 should be much smarter in this regard …
> Regards,
> Roland
> On Mon, Aug 10, 2015 at 12:44 PM, gutzeit <gutz...@gmail.com> wrote:
>> Hey,
>>
>> I am using akka 2.1.4 (yeah, old, tell me about it) and lately been
>> experimenting with ConsistentHashing routers.
>>
>> I have two routers defined like that with,
>>
>>             */blahRouter {*
>>
>> *                router = consistent-hashing*
>>
>> *                nr-of-instances = 100000*
>>
>> *                virtual-nodes-factor = 10*
>>
>> *            }*
>>
>> *            /blah1Router {*
>>
>> *                router = consistent-hashing*
>>
>> *                nr-of-instances = 100000*
>>
>> *                virtual-nodes-factor = 10*
>>
>> *            }*
>>
>>
>> After running for a while, I do jmap to see the living objects, and to my
>> surprise i see the following:
>>
>>              instances          size
>>  10:      *31600064*     1011202048  akka.routing.ConsistentActorRef
>>
>>
>> The question is, how come there are so many those internal classes
>> retained for at most of 200K actors ?
>>
>> Am I missing anything ?
>>
>> --
>> >>>>>>>>>> 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 http://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
> -- 
> Akka Team
> Typesafe - Reactive apps on the JVM
> Blog: letitcrash.com
> Twitter: @akkateam
> -- 
>>>>>>>>>>>      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 a topic in the Google 
> Groups "Akka User List" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/akka-user/Y65Zc8_ke7s/unsubscribe.
> To unsubscribe from this group and all its topics, 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 http://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 http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to