logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Federico Ragona <frag...@elmar.nl>
Subject v2.0-beta7: Logging causes java.lang.OutOfMemoryError: Java heap space
Date Mon, 29 Jul 2013 14:20:42 GMT
Hello,
I'm using version Log4j version 2.0-beta6 on OpenJDK version "1.7.0_25" and I just stumbled
upon this issue:

    https://issues.apache.org/jira/browse/LOG4J2-245

Seeing that it was fixed in version 2.0-beta7, I updated my pom.xml to use this version but
now my code hangs for a while on the logging instruction and then I get:

java.lang.OutOfMemoryError: Java heap space
    at java.util.Arrays.copyOf(Arrays.java:2245)
    at java.util.Arrays.copyOf(Arrays.java:2219)
    at java.util.Vector.grow(Vector.java:262)
    at java.util.Vector.ensureCapacityHelper(Vector.java:242)
    at java.util.Vector.addElement(Vector.java:616)
    at java.util.Stack.push(Stack.java:67)
    at org.apache.logging.log4j.core.impl.ThrowableProxy.getCurrentStack(ThrowableProxy.java:297)
    at org.apache.logging.log4j.core.impl.ThrowableProxy.<init>(ThrowableProxy.java:69)
    at org.apache.logging.log4j.core.impl.Log4jLogEvent.<init>(Log4jLogEvent.java:112)
    at org.apache.logging.log4j.core.impl.Log4jLogEvent.<init>(Log4jLogEvent.java:83)
    at org.apache.logging.log4j.core.impl.DefaultLogEventFactory.createEvent(DefaultLogEventFactory.java:49)
    at org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:364)
    at org.apache.logging.log4j.core.Logger.log(Logger.java:110)
    at org.apache.logging.log4j.spi.AbstractLoggerWrapper.log(AbstractLoggerWrapper.java:55)
    at org.slf4j.impl.SLF4JLogger.error(SLF4JLogger.java:427)

I get the same result with version 2.0-beta8.

Is anybody aware of a way to avoid this?

Kind regards,
Federico
<https://issues.apache.org/jira/browse/LOG4J2-245>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message