Hi I am using ActiveMQ v5.14.4 and have observed below multiple times now. I am using NIO connector so thread count is not high (~203 threads when this issue was happening).
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:714) at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:950) at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1368) at org.apache.activemq.transport.AbstractInactivityMonitor.writeCheck(AbstractInactivityMonitor.java:189) at org.apache.activemq.transport.AbstractInactivityMonitor$3.run(AbstractInactivityMonitor.java:153) 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) which then triggers following warnings and no new clients are able to connect after this. [20180702 06:49:50.829 EDT (ActiveMQ NIO Worker 8) org.apache.activemq.broker.TransportConnection#serviceTransportException 243 WARN] - Transport Connection to: tcp://10.219.31.188:34470 failed: java.io.IOException: Timer already cancelled. [20180702 06:49:50.945 EDT (ActiveMQ NIO Worker 7) org.apache.activemq.broker.TransportConnection#serviceTransportException 243 WARN] - Transport Connection to: tcp://10.219.31.184:41305 failed: java.io.IOException: Timer already cancelled. [20180702 06:49:50.945 EDT (ActiveMQ NIO Worker 5) org.apache.activemq.broker.TransportConnection#serviceTransportException 243 WARN] - Transport Connection to: tcp://10.219.31.189:41305 failed: java.io.IOException: Timer already cancelled. [20180702 06:49:50.945 EDT (ActiveMQ NIO Worker 3) org.apache.activemq.broker.TransportConnection#serviceTransportException 243 WARN] - Transport Connection to: tcp://10.218.24.250:46430 failed: java.io.IOException: Timer already cancelled. What can cause this issue to happen? 203 threads doesn't seem too high. I also found this related JIRA- https://issues.apache.org/jira/browse/AMQ-5543 <https://issues.apache.org/jira/browse/AMQ-5543> which seems to ahve fixed this but i am still seeing this issue? How should i go about fixing this? Does this look like a bug or a configuration problem? Thanks, Abhi -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html