[logback-user] slf4 with logback causes java.lang.OutOfMemoryError: Java heap space

Thorbjoern Ravn Andersen ravn at runjva.com
Thu Jul 30 15:05:22 CEST 2009

Mel T skrev:
> Hi,
> I swiched our project to using SLF4J / logback. All projects and build files
> worked (we have 40 projects) until one of ant target failed with that error:
>  java.lang.OutOfMemoryError: Java heap space
> If I switch it to using slf4j-simple, I do not get that memory error. 
> If I use log4j binding, it works too.
Sounds like you are close to the memory limit, and that logback is just 
that bit larger.

It is perfectly possible I guess wrong.  Can you run the ant task in a 
single JVM which you invoke with a memory profiler? 

  Thorbjørn Ravn Andersen  "...plus... Tubular Bells!"

More information about the Logback-user mailing list