← Back to team overview

openjdk team mailing list archive

Bug#717856: Bug#717856: openjdk-7-jre: overflows heap when attempting to log backtraces with Log4J 2

 

tag 717856 + unreproducible
quit

Hi!

2013/7/25 David Banks <amoebae@xxxxxxxxx>

> Package: openjdk-7-jre
> Version: 7u25-2.3.10-1~deb7u1
> Severity: normal
>
> Hi there,
>
> I am unable to run a simple program using the Log4J 2 API.  The same
> program
> runs on other JVMs without issues, including the OpenJDK 7u3 version in
> stable.
> The update from wheezy-security to 7u21 appears to have caused this issue.
> [...]
> When running this with the most recent version of Log4j 2, it runs for
> about a
> minute, producing the following output:
>
>   amoe@kruis $ java -jar log4j2-test-1-jar-with-dependencies.jar
>   11:28:17.622 [main] ERROR Hello - INSIDE TRY BLOCK
>   Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
> [...]
> I'm not sure if this is a bug in Log4j 2, or in the JVM itself, but I am
> currently only able to reproduce it with this version of the Debian JVM.
>  There
> is a Maven project available at <https://gist.github.com/amoe/6069573> if
> you
> want to run the test yourself.
>

I've just tried to reproduce this issue under same condtions as yours. From
my tests :
- openjdk-7u25 + log4j 2.0-beta8 => Crash with OOM
- openjdk-7u25 + log4j 2.0-beta9 => OK
So it seems that this issue root cause is (was?) inside log4j 2.x

Could you please test with latest release of log4j 2 and confirm this ?

Regards,

-- 
Damien - Debian Developper
http://wiki.debian.org/DamienRaudeMorvan

Follow ups