I'm using Akka actor system with version 2.7.0 and we are facing memory leak issue as below:
When the process gets completed, memory is not getting free and below are two potential causes: enter image description hereWe are using Akka Actors with sharding in a cluster. We are also using Cassandra for persistence. We basically create jobs and provide some tasks to the actors. To give you a rough idea, we create about 10K actors for a job over 20 minutes. We run 100 such jobs in parallel. We had following observations:
- We were struggling with Cassandra connectivity after few mins, so we disabled remember-entities.
- We have configured 16 vCPU and 32 GB RAM. After 1st run, the RAM stays around 4 to 6 GB. After the 2nd run, RAM stays around 6 to 8 GB. After the 3rd run of 100 jobs, memory utilization goes belong 13 GB and GC goes crazy. We have set Xmx to 16 GB.
https://github.com/akka/akka/issues/29977

Any possible resolution?
It's going to be hard for someone to effectively debug your application for you. A few things, I'd note however: