On Thu, Apr 21, 2016 at 11:53 PM, Yan Pei <[email protected]> wrote: > Hi All, > > If I have lots of persistence actors in the ActorSystem, during > recovering each instance of actor will read the same set of data into > memory, potentially is it an issue? I have concern that it might cause > OutOfMemory exception for a large load of data. >
What do you mean by "same set of data". Same as what? It's true that you must have memory for all running actors, that is the same for ordinary actors as for persistent actors. During recovery the persistent actors replay events, but you don't have to retain the events in memory. Those can be garbage collected when they have been processed to build up current state. You can use Cluster Sharding to spread many persistent actors over a many nodes. Cheers, Patrik > > Thanks, > Yan > > -- > >>>>>>>>>> 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. > -- Patrik Nordwall Akka Tech Lead Lightbend <http://www.lightbend.com/> - Reactive apps on the JVM Twitter: @patriknw -- >>>>>>>>>> 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.
