[akka-user] memory issue in akka application

2015-07-24 Thread slowhandblues
We have an application in Akka and having a problem with increasing heap memory that is growing with time and eventually crashing the application. On analyzing the heap dump we can see all our log entries are getting persisted in the memory. Below is object tree for the same Akka dispatcher -

Re: [akka-user] memory issue in akka application

2015-07-27 Thread Roland Kuhn
As Johannes says you are most likely overloading the logging system. Unfortunately the default event handlers do not offer protection against this but you can easily write your own (start by copying this one

Re: [akka-user] memory issue in akka application

2015-07-27 Thread Somak De
Hi Ronald, Thanks for your answer. I will definitely explore the approach you have suggested. In the meantime, as a workaround solution, we have reduced amount of logging in the code and used standalone org.slf4j.logger instead of akka.event.logger. That reduced the amount of heap memory growth dr

Re: [akka-user] memory issue in akka application

2015-08-04 Thread Roland Kuhn
No matter which logging solution you choose, if you try to log more messages than it can handle then something has to give: either the system’s message queues grow out of bounds or you start dropping log messages. If you use a bounded mailbox then make sure to set the wait time to 0s because oth

Re: [akka-user] memory issue in akka application

2015-08-04 Thread Jim Hazen
If you'd like to handle this in logback land and not deal with altering akka's logging strategy, you can also configure logback to work in bounded space and drop overflows as well. Take a look at logback's AsyncAppender. http://logback.qos.ch/manual/appenders.html You'll configure your logback