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.