… or stop using ancient versions of Akka ;-)

> 13 aug 2015 kl. 10:55 skrev Dima Gutzeit <[email protected]>:
> 
> OMG. I better stop using ConsistentHashing routing then. Bummer.
> 
> Regards,
> Dima Gutzeit
> 
> 
> On Thu, Aug 13, 2015 at 2:38 PM, Akka Team <[email protected] 
> <mailto:[email protected]>> 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 <[email protected] 
> <mailto:[email protected]>> 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/ <http://akka.io/docs/>
> >>>>>>>>>> Check the FAQ: 
> >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html 
> >>>>>>>>>> <http://doc.akka.io/docs/akka/current/additional/faq.html>
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user 
> >>>>>>>>>> <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 [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at http://groups.google.com/group/akka-user 
> <http://groups.google.com/group/akka-user>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.
> 
> 
> 
> -- 
> Akka Team
> Typesafe - Reactive apps on the JVM
> Blog: letitcrash.com <http://letitcrash.com/>
> Twitter: @akkateam
> 
> -- 
> >>>>>>>>>> Read the docs: http://akka.io/docs/ <http://akka.io/docs/>
> >>>>>>>>>> Check the FAQ: 
> >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html 
> >>>>>>>>>> <http://doc.akka.io/docs/akka/current/additional/faq.html>
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user 
> >>>>>>>>>> <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 
> <https://groups.google.com/d/topic/akka-user/Y65Zc8_ke7s/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email to 
> [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at http://groups.google.com/group/akka-user 
> <http://groups.google.com/group/akka-user>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.
> 
> 
> -- 
> >>>>>>>>>> Read the docs: http://akka.io/docs/ <http://akka.io/docs/>
> >>>>>>>>>> Check the FAQ: 
> >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html 
> >>>>>>>>>> <http://doc.akka.io/docs/akka/current/additional/faq.html>
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user 
> >>>>>>>>>> <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 [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at http://groups.google.com/group/akka-user 
> <http://groups.google.com/group/akka-user>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.



Dr. Roland Kuhn
Akka Tech Lead
Typesafe <http://typesafe.com/> – Reactive apps on the JVM.
twitter: @rolandkuhn
 <http://twitter.com/#!/rolandkuhn>

-- 
>>>>>>>>>>      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 [email protected].
To post to this group, send email to [email protected].
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