You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Yiru Li <yi...@envisagesystems.com> on 2013/09/30 22:58:00 UTC
OutOfMenoryError in log4j-2.0-beta9
I have configured to use all loggers asynchronous. When I ran a small file
over our system, there was no problem.
When ran a larger file though our system, the problem was raised as
described below:
Sep 30, 2013 2:56:08 PM com.lmax.disruptor.FatalExceptionHandler
handleEventExce ption
SEVERE: Exception processing: 14451294
org.apache.logging.log4j.core.async.RingB ufferLogEvent@226dc6bf
java.lang.OutOfMemoryError: Java heap space
Exception in thread "AsyncLogger-1" java.lang.RuntimeException:
java.lang.OutOfM emoryError: Java heap space
at
com.lmax.disruptor.FatalExceptionHandler.handleEventException(FatalEx
ceptionHandler.java:45)
at
com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:1 52)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:615)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.OutOfMemoryError: Java heap space
Exception in thread "pool-2-thread-3" java.lang.OutOfMemoryError: Java heap
spac e
Exception in thread "Thread-3" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Thread-2" java.lang.OutOfMemoryError: Java heap space
Exception in thread "pool-2-thread-1" java.lang.NullPointerException
at
org.apache.logging.log4j.core.async.AsyncLogger.log(AsyncLogger.java: 223)
at
org.apache.logging.log4j.spi.AbstractLoggerWrapper.log(AbstractLogger
Wrapper.java:55)
at org.slf4j.impl.SLF4JLogger.warn(SLF4JLogger.java:317)
at com.envisagesystems.util.logger.LogTag.pattern(LogTag.java:91)
at
com.envisagesystems.util.logger.LogTag.getLogMessage(LogTag.java:200)
at
com.envisagesystems.cloud.workflow.eventsystem.EventConsumer.logExcep
tion(EventConsumer.java:235)
at
com.envisagesystems.cloud.workflow.eventsystem.WorkFlowEventHandler.l
ogException(WorkFlowEventHandler.java:515)
at
com.envisagesystems.cloud.workflow.eventsystemmq.polling.JobQueueRead
er.run(JobQueueReader.java:136)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:615)
at java.lang.Thread.run(Thread.java:722)
Exception in thread "pool-2-thread-2" java.lang.NullPointerException
at
org.apache.logging.log4j.core.async.AsyncLogger.log(AsyncLogger.java: 223)
at
org.apache.logging.log4j.spi.AbstractLoggerWrapper.log(AbstractLogger
Wrapper.java:55)
at org.slf4j.impl.SLF4JLogger.warn(SLF4JLogger.java:317)
at com.envisagesystems.util.logger.LogTag.pattern(LogTag.java:91)
at
com.envisagesystems.util.logger.LogTag.getLogMessage(LogTag.java:200)
at
com.envisagesystems.cloud.workflow.eventsystem.EventConsumer.logExcep
tion(EventConsumer.java:235)
at
com.envisagesystems.cloud.workflow.eventsystem.WorkFlowEventHandler.l
ogException(WorkFlowEventHandler.java:515)
at
com.envisagesystems.cloud.workflow.eventsystemmq.polling.JobQueueRead
er.run(JobQueueReader.java:136)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:615)
at java.lang.Thread.run(Thread.java:722)
Exception in thread "pool-4-thread-3" java.lang.NullPointerException
at
org.apache.logging.log4j.core.async.AsyncLogger.log(AsyncLogger.java: 223)
at
org.apache.logging.log4j.spi.AbstractLoggerWrapper.log(AbstractLogger
Wrapper.java:55)
at org.slf4j.impl.SLF4JLogger.debug(SLF4JLogger.java:138)
at
com.envisagesystems.cloud.workflow.eventsystemmq.polling.JobQueueRead
er$_Runnable.run(JobQueueReader.java:378)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:615)
at java.lang.Thread.run(Thread.java:722)
Re: OutOfMenoryError in log4j-2.0-beta9
Posted by Yiru Li <yi...@envisagesystems.com>.
I have created a JIRA ticket for this issue.
Please let me know if you need more detail. I can also do more test as you
instruct.
thanks a lot
Yiru
On Mon, Sep 30, 2013 at 10:52 PM, Remko Popma <re...@gmail.com> wrote:
> Thank you for reporting this.
> Can I ask you to create a JIRA ticket for this issue? Can you add a few
> details: what OS, java version, startup options (especially memory
> related), and please attach your log4j2.xml config file.
>
> Ideally also describe how I can reproduce the issue.
>
> What do you mean by "ran a larger file though our system"?
>
> Best regards,
> Remko
>
> On Tuesday, October 1, 2013, Yiru Li wrote:
>
> > I have configured to use all loggers asynchronous. When I ran a small
> file
> > over our system, there was no problem.
> >
> > When ran a larger file though our system, the problem was raised as
> > described below:
> >
> > Sep 30, 2013 2:56:08 PM com.lmax.disruptor.FatalExceptionHandler
> > handleEventExce ption
> > SEVERE: Exception processing: 14451294
> > org.apache.logging.log4j.core.async.RingB ufferLogEvent@226dc6bf
> > java.lang.OutOfMemoryError: Java heap space
> >
> > Exception in thread "AsyncLogger-1" java.lang.RuntimeException:
> > java.lang.OutOfM emoryError: Java heap space
> > at
> > com.lmax.disruptor.FatalExceptionHandler.handleEventException(FatalEx
> > ceptionHandler.java:45)
> > at
> > com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:1
> 52)
> > at
> > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
> > java:1145)
> > at
> > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
> > .java:615)
> > at java.lang.Thread.run(Thread.java:722)
> > Caused by: java.lang.OutOfMemoryError: Java heap space
> > Exception in thread "pool-2-thread-3" java.lang.OutOfMemoryError: Java
> heap
> > spac e
> > Exception in thread "Thread-3" java.lang.OutOfMemoryError: Java heap
> space
> > Exception in thread "Thread-2" java.lang.OutOfMemoryError: Java heap
> space
> > Exception in thread "pool-2-thread-1" java.lang.NullPointerException
> > at
> > org.apache.logging.log4j.core.async.AsyncLogger.log(AsyncLogger.java:
> 223)
> > at
> > org.apache.logging.log4j.spi.AbstractLoggerWrapper.log(AbstractLogger
> > Wrapper.java:55)
> > at org.slf4j.impl.SLF4JLogger.warn(SLF4JLogger.java:317)
> > at com.envisagesystems.util.logger.LogTag.pattern(LogTag.java:91)
> > at
> > com.envisagesystems.util.logger.LogTag.getLogMessage(LogTag.java:200)
> > at
> > com.envisagesystems.cloud.workflow.eventsystem.EventConsumer.logExcep
> > tion(EventConsumer.java:235)
> > at
> > com.envisagesystems.cloud.workflow.eventsystem.WorkFlowEventHandler.l
> > ogException(WorkFlowEventHandler.java:515)
> > at
> > com.envisagesystems.cloud.workflow.eventsystemmq.polling.JobQueueRead
> > er.run(JobQueueReader.java:136)
> > at
> > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
> > java:1145)
> > at
> > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
> > .java:615)
> > at java.lang.Thread.run(Thread.java:722)
> > Exception in thread "pool-2-thread-2" java.lang.NullPointerException
> > at
> > org.apache.logging.log4j.core.async.AsyncLogger.log(AsyncLogger.java:
> 223)
> > at
> > org.apache.logging.log4j.spi.AbstractLoggerWrapper.log(AbstractLogger
> > Wrapper.java:55)
> > at org.slf4j.impl.SLF4JLogger.warn(SLF4JLogger.java:317)
> > at com.envisagesystems.util.logger.LogTag.pattern(LogTag.java:91)
> > at
> > com.envisagesystems.util.logger.LogTag.getLogMessage(LogTag.java:200)
> > at
> > com.envisagesystems.cloud.workflow.eventsystem.EventConsumer.logExcep
> > tion(EventConsumer.java:235)
> > at
> > com.envisagesystems.cloud.workflow.eventsystem.WorkFlowEventHandler.l
> > ogException(WorkFlowEventHandler.java:515)
> > at
> > com.envisagesystems.cloud.workflow.eventsystemmq.polling.JobQueueRead
> > er.run(JobQueueReader.java:136)
> > at
> > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
> > java:1145)
> > at
> > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
> > .java:615)
> > at java.lang.Thread.run(Thread.java:722)
> > Exception in thread "pool-4-thread-3" java.lang.NullPointerException
> > at
> > org.apache.logging.log4j.core.async.AsyncLogger.log(AsyncLogger.java:
> 223)
> > at
> > org.apache.logging.log4j.spi.AbstractLoggerWrapper.log(AbstractLogger
> > Wrapper.java:55)
> > at org.slf4j.impl.SLF4JLogger.debug(SLF4JLogger.java:138)
> > at
> > com.envisagesystems.cloud.workflow.eventsystemmq.polling.JobQueueRead
> > er$_Runnable.run(JobQueueReader.java:378)
> > at
> > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
> > java:1145)
> > at
> > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
> > .java:615)
> > at java.lang.Thread.run(Thread.java:722)
> >
>
Re: OutOfMenoryError in log4j-2.0-beta9
Posted by Remko Popma <re...@gmail.com>.
Thank you for reporting this.
Can I ask you to create a JIRA ticket for this issue? Can you add a few
details: what OS, java version, startup options (especially memory
related), and please attach your log4j2.xml config file.
Ideally also describe how I can reproduce the issue.
What do you mean by "ran a larger file though our system"?
Best regards,
Remko
On Tuesday, October 1, 2013, Yiru Li wrote:
> I have configured to use all loggers asynchronous. When I ran a small file
> over our system, there was no problem.
>
> When ran a larger file though our system, the problem was raised as
> described below:
>
> Sep 30, 2013 2:56:08 PM com.lmax.disruptor.FatalExceptionHandler
> handleEventExce ption
> SEVERE: Exception processing: 14451294
> org.apache.logging.log4j.core.async.RingB ufferLogEvent@226dc6bf
> java.lang.OutOfMemoryError: Java heap space
>
> Exception in thread "AsyncLogger-1" java.lang.RuntimeException:
> java.lang.OutOfM emoryError: Java heap space
> at
> com.lmax.disruptor.FatalExceptionHandler.handleEventException(FatalEx
> ceptionHandler.java:45)
> at
> com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:1 52)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
> java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
> .java:615)
> at java.lang.Thread.run(Thread.java:722)
> Caused by: java.lang.OutOfMemoryError: Java heap space
> Exception in thread "pool-2-thread-3" java.lang.OutOfMemoryError: Java heap
> spac e
> Exception in thread "Thread-3" java.lang.OutOfMemoryError: Java heap space
> Exception in thread "Thread-2" java.lang.OutOfMemoryError: Java heap space
> Exception in thread "pool-2-thread-1" java.lang.NullPointerException
> at
> org.apache.logging.log4j.core.async.AsyncLogger.log(AsyncLogger.java: 223)
> at
> org.apache.logging.log4j.spi.AbstractLoggerWrapper.log(AbstractLogger
> Wrapper.java:55)
> at org.slf4j.impl.SLF4JLogger.warn(SLF4JLogger.java:317)
> at com.envisagesystems.util.logger.LogTag.pattern(LogTag.java:91)
> at
> com.envisagesystems.util.logger.LogTag.getLogMessage(LogTag.java:200)
> at
> com.envisagesystems.cloud.workflow.eventsystem.EventConsumer.logExcep
> tion(EventConsumer.java:235)
> at
> com.envisagesystems.cloud.workflow.eventsystem.WorkFlowEventHandler.l
> ogException(WorkFlowEventHandler.java:515)
> at
> com.envisagesystems.cloud.workflow.eventsystemmq.polling.JobQueueRead
> er.run(JobQueueReader.java:136)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
> java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
> .java:615)
> at java.lang.Thread.run(Thread.java:722)
> Exception in thread "pool-2-thread-2" java.lang.NullPointerException
> at
> org.apache.logging.log4j.core.async.AsyncLogger.log(AsyncLogger.java: 223)
> at
> org.apache.logging.log4j.spi.AbstractLoggerWrapper.log(AbstractLogger
> Wrapper.java:55)
> at org.slf4j.impl.SLF4JLogger.warn(SLF4JLogger.java:317)
> at com.envisagesystems.util.logger.LogTag.pattern(LogTag.java:91)
> at
> com.envisagesystems.util.logger.LogTag.getLogMessage(LogTag.java:200)
> at
> com.envisagesystems.cloud.workflow.eventsystem.EventConsumer.logExcep
> tion(EventConsumer.java:235)
> at
> com.envisagesystems.cloud.workflow.eventsystem.WorkFlowEventHandler.l
> ogException(WorkFlowEventHandler.java:515)
> at
> com.envisagesystems.cloud.workflow.eventsystemmq.polling.JobQueueRead
> er.run(JobQueueReader.java:136)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
> java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
> .java:615)
> at java.lang.Thread.run(Thread.java:722)
> Exception in thread "pool-4-thread-3" java.lang.NullPointerException
> at
> org.apache.logging.log4j.core.async.AsyncLogger.log(AsyncLogger.java: 223)
> at
> org.apache.logging.log4j.spi.AbstractLoggerWrapper.log(AbstractLogger
> Wrapper.java:55)
> at org.slf4j.impl.SLF4JLogger.debug(SLF4JLogger.java:138)
> at
> com.envisagesystems.cloud.workflow.eventsystemmq.polling.JobQueueRead
> er$_Runnable.run(JobQueueReader.java:378)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
> java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
> .java:615)
> at java.lang.Thread.run(Thread.java:722)
>