On Tuesday, August 9, 2016 at 11:14:57 AM UTC-4, drewhk wrote: > > > > On Tue, Aug 9, 2016 at 5:07 PM, Rob Crawford <[email protected] > <javascript:>> wrote: > >> The project home page says "~2.5 million actors per GB of heap" -- >> > > That is sadly outdated, actors now take up more memory. Still, not a > drastic difference, the million in magnitude likely holds. > > >> that works out to just about 430 bytes per actor. I'm assuming these >> actors have little or no state of their own, and the figure includes the >> Akka kernel itself. >> > > Akka "kernel" is a constant in this picture. What is measured here is the > size of a minimal actor, which is yes, a few hundred bytes. Of course as > soon as an actor has a message in its mailbox, then that will consume > memory. >
Yes -- and I'm purposefully over-estimating the memory the actors will take up. > More efficient than what? There is nothing surprising that an actor itself > is a few hundred bytes (and the additional state you put in there of > course). It just keeps a queue, some fields for various internal state > (like references to child actors, list of watchers, etc). These are all > small, albeit they can grow depending on the pattern the actors are used. > More memory efficient than a Spring-based JMS system. I'm used to systems with anemic object models -- just value-carriers that sit between the database and servlets or JMS queues -- that still consume multiple GB of memory. The possibility of an active, meaningful object model that takes up less memory is... breath taking. Sorry if I'm wasting everyone's time. -- >>>>>>>>>> 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 https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
