I have a pattern where I am spawning an actor to aggregate pending results 
from other actors for each task request. Once that actor finishes its task 
it is discarded. The system goes through quite a few of these so I'm 
concerned with possible garbage collection issues.

Questions:
1. Is there an elegant way to recycle these actors, e.g. creating a pool of 
them and reusing them once they have completed their task?
2. Upon shutdown, are actors garbage collected? I am passing parameters to 
these actors via props at startup, some of which are long term objects. Do 
I have to set these to null in the post shutdown to make sure the actor is 
garbage collected?
3. How are the akka messages garbage collected? All their field values are 
set to final and some of them might contain references to long term objects.

Thanks!

-- 
*****************************************************************************************************
** New discussion forum: https://discuss.akka.io/ replacing akka-user 
google-group soon.
** This group will soon be put into read-only mode, and replaced by 
discuss.akka.io
** More details: https://akka.io/blog/news/2018/03/13/discuss.akka.io-announced
*****************************************************************************************************
>>>>>>>>>> 
>>>>>>>>>>      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 view this discussion on the web visit 
https://groups.google.com/d/msgid/akka-user/4b16c67e-a5cc-4f16-81d3-3d3eb0f5d692%40googlegroups.com.

Reply via email to