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 
<https://github.com/akka/akka/blob/v2.4-M2/akka-slf4j/src/main/scala/akka/event/slf4j/Slf4jLogger.scala#L58>)
 to use a bounded Mailbox or a bounded internal queue before dispatching to the 
actual Logger (in a non-blocking fashion or in a child Actor).

Regards,

Roland

> 24 jul 2015 kl. 20:13 skrev slowhandblues <deso...@gmail.com>:
> 
> Hi,
> 
> Thanks for the response. Actually we are not creating any separate actor for 
> log (unless akka creates internally). How do we identify the actor? The way 
> we are trying to write logs is pretty much same as defined in akka 
> documentation (http://doc.akka.io/docs/akka/2.0/java/logging.html) along with 
> logback. 
> 
> On Friday, 24 July 2015 17:22:02 UTC+5:30, slowhandblues wrote:
> 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 --> Unbounded mail box --> concurrent linked queue --> 
> envelop object consisting of all the log information
> 
> Our actors are untyped actor and we are using akka default event logger for 
> logging
> 
> Any idea what could be the problem with this?
> 
> 
> 
> Thanks,
> 
> Somak
> 
> 
> -- 
> >>>>>>>>>> Read the docs: http://akka.io/docs/ <http://akka.io/docs/>
> >>>>>>>>>> Check the FAQ: 
> >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html 
> >>>>>>>>>> <http://doc.akka.io/docs/akka/current/additional/faq.html>
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user 
> >>>>>>>>>> <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 akka-user+unsubscr...@googlegroups.com 
> <mailto:akka-user+unsubscr...@googlegroups.com>.
> To post to this group, send email to akka-user@googlegroups.com 
> <mailto:akka-user@googlegroups.com>.
> Visit this group at http://groups.google.com/group/akka-user 
> <http://groups.google.com/group/akka-user>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.



Dr. Roland Kuhn
Akka Tech Lead
Typesafe <http://typesafe.com/> – Reactive apps on the JVM.
twitter: @rolandkuhn
 <http://twitter.com/#!/rolandkuhn>

-- 
>>>>>>>>>>      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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to