akka.event.logging.$.. objects filling up heap

39 views
Skip to first unread message

AL

unread,
Apr 21, 2017, 1:51:18 AM4/21/17
to Akka User List
Hi ,
I am analyzing my heap dump after suffering from a crash. it seems that akka.event.logging.$.. filling up the heap (see attached images).
My actors are extends ActorLogging.  and we are using logback.
my configuration:

akka {
  loglevel = "DEBUG"
  loggers = ["akka.event.slf4j.Slf4jLogger"]
  log-dead-letters = 10
}

logback.xml:
<configuration">
 <jmxConfigurator />
    <conversionRule conversionWord="coloredLevel" converterClass="com.foo.logging.ColoredLevel"/>
    <property name="COLORED_LEVEL_PATTERN" value="%coloredLevel [%d{ISO8601}] %c: %m%n%rEx" />
    <property name="NON_COLORED_LEVEL_PATTERN" value="%-5level [%d{ISO8601}] %c: %m%n%rEx" />
    <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
        <target>System.out</target>
        <encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
            <layout class="com.foo.logging.fooLayout">
                <pattern>${COLORED_LEVEL_PATTERN}</pattern>
            </layout>
        </encoder>
    </appender>

    <appender name="MAIN_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
        <file>tmp/foo.log</file>
        <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
            <fileNamePattern>tmp/foo.log.%i.gz</fileNamePattern>
            <minIndex>1</minIndex>
            <maxIndex>10</maxIndex>
        </rollingPolicy>
        <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
            <maxFileSize>100MB</maxFileSize>
        </triggeringPolicy>
        <encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
            <layout class="com.foo.logging.fooLayout">
                <pattern>${NON_COLORED_LEVEL_PATTERN}</pattern>
            </layout>
        </encoder>
    </appender>
    <logger name="akka.actor" level="INFO"/>
    <logger name="org.springframework" level="WARN"/>
    <logger name="org.glassfish" level="WARN"/>
    <root level="INFO">
        <appender-ref ref="MAIN_FILE"/>
        <appender-ref ref="CONSOLE"/>
    </root>
</configuration>

What can I do other then remove some logs ? 

* I did saw this answer from 2013, but how can I limit the ActorLogging mailbox ?

Thank you for helping
Screen Shot 2017-04-20 at 19.07.30.png
Screen Shot 2017-04-20 at 19.07.06.png

Patrik Nordwall

unread,
Apr 21, 2017, 6:13:13 AM4/21/17
to akka...@googlegroups.com
Doesn't the first picture indicate that you create many actors that are never stopped?

By the way, you should also set 
logging-filter = "akka.event.slf4j.Slf4jLoggingFilter"

/Patrik

--
>>>>>>>>>> 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+unsubscribe@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
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 -  Reactive apps on the JVM
Twitter: @patriknw

AL

unread,
Apr 21, 2017, 3:29:44 PM4/21/17
to Akka User List
Thank Patric,
I will check that . but looking at the 2nd image, doesn't seems strange all those akka.event.logging$Info2/Debug2 objects ? 

and yes, definitely missed that logger . 

Thanks
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com.

To post to this group, send email to akka...@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Patrik Nordwall

unread,
Apr 25, 2017, 2:23:16 AM4/25/17
to akka...@googlegroups.com
I don't know, one have to drill down and find what is holding on to the instances.

To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+unsubscribe@googlegroups.com.

To post to this group, send email to akka...@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages