activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Bain <tb...@alumni.duke.edu>
Subject Re: Exception in thread "ActiveMQ Broker[localhost] Scheduler" java.lang.OutOfMemoryError: unable to create new native thread
Date Mon, 19 Jan 2015 06:45:18 GMT
Assuming this is Linux, you can get your system administrator to increase
the per-user process limit (since that's what's meant by "native thread"
here) beyond the default of 1024.  Just make sure you do it for all users
or for the specific user the broker runs as.
On Jan 18, 2015 11:34 PM, "Sid" <hiremath47@gmail.com> wrote:

> Hi there,
>
> I'm using AMQ 5.10.0 with failover transport and I'm getting following
> exception:-
>
> Have following setting:-
> ACTIVEMQ_OPTS="-Xmx1G -Dorg.apache.activemq.UseDedicatedTaskRunner=false
>
> Exception in thread "ActiveMQ Broker[localhost] Scheduler"
> java.lang.OutOfMemoryError: unable to create new native thread
>         at java.lang.Thread.start0(Native Method)
>         at java.lang.Thread.start(Thread.java:693)
>         at
>
> java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:949)
>         at
>
> java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1371)
>         at
>
> org.apache.activemq.thread.PooledTaskRunner.wakeup(PooledTaskRunner.java:83)
>         at
> org.apache.activemq.broker.region.Queue.asyncWakeup(Queue.java:1891)
>         at
> org.apache.activemq.broker.region.Queue.expireMessages(Queue.java:985)
>         at
> org.apache.activemq.broker.region.Queue.access$100(Queue.java:104)
>         at org.apache.activemq.broker.region.Queue$2.run(Queue.java:148)
>         at
>
> org.apache.activemq.thread.SchedulerTimerTask.run(SchedulerTimerTask.java:33)
>         at java.util.TimerThread.mainLoop(Timer.java:555)
>         at java.util.TimerThread.run(Timer.java:505)
> ERROR | Could not accept connection : java.lang.Exception:
> java.lang.OutOfMemoryError: unable to create new native thread
> ERROR | Could not accept connection : java.lang.Exception:
> java.lang.OutOfMemoryError: unable to create new native thread
> ERROR | Could not accept connection : java.lang.Exception:
> java.lang.OutOfMemoryError: unable to create new native thread
> Exception in thread "ActiveMQ InactivityMonitor WriteCheckTimer"
> java.lang.OutOfMemoryError: unable to create new native thread
>         at java.lang.Thread.start0(Native Method)
>         at java.lang.Thread.start(Thread.java:693)
>         at
>
> java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:949)
>         at
>
> java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1371)
>         at
>
> org.apache.activemq.transport.AbstractInactivityMonitor.writeCheck(AbstractInactivityMonitor.java:158)
>         at
>
> org.apache.activemq.transport.AbstractInactivityMonitor$2.run(AbstractInactivityMonitor.java:122)
>         at
>
> org.apache.activemq.thread.SchedulerTimerTask.run(SchedulerTimerTask.java:33)
>         at java.util.TimerThread.mainLoop(Timer.java:555)
>         at java.util.TimerThread.run(Timer.java:505)
> Exception in thread "ActiveMQ BrokerService[localhost] Task-15"
> java.lang.OutOfMemoryError: unable to create new native thread
>         at java.lang.Thread.start0(Native Method)
>         at java.lang.Thread.start(Thread.java:693)
>         at
>
> java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:949)
>         at
>
> java.util.concurrent.ThreadPoolExecutor.processWorkerExit(ThreadPoolExecutor.java:1017)
>         at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1163)
>         at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:724)
> Exception in thread "ActiveMQ BrokerService[localhost] Task-18"
> java.lang.OutOfMemoryError: unable to create new native thread
>         at java.lang.Thread.start0(Native Method)
>         at java.lang.Thread.start(Thread.java:693)
>         at
>
> java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:949)
>         at
>
> java.util.concurrent.ThreadPoolExecutor.processWorkerExit(ThreadPoolExecutor.java:1017)
>         at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1163)
>         at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:724)
> ERROR | Could not accept connection : java.lang.Exception:
> java.lang.OutOfMemoryError: unable to create new native thread
> ERROR | Could not accept connection : java.lang.Exception:
> java.lang.OutOfMemoryError: unable to create new native thread
>
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Exception-in-thread-ActiveMQ-Broker-localhost-Scheduler-java-lang-OutOfMemoryError-unable-to-create-d-tp4690092.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

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