activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jeffrey <>
Subject java.lang.OutOfMemoryError: unable to create new native thread
Date Tue, 05 Feb 2013 20:08:44 GMT
We are using Fuse esb 7.0.2 for a broker right now and testing it to see if
it can work for out production environment.
Everytime I get to about 700 connections to the broker, I get this
 Exception in thread "InactivityMonitor WriteCheck"
java.lang.OutOfMemoryError: unable to create new native thread
        at java.lang.Thread.start0(Native Method)
        at java.lang.Thread.start(
        at java.util.TimerThread.mainLoop(

I looked at
and and tried some of their ideas.  I
changed to nio+ssl instead of the regular ssl (If we cant use ssl we cant
use it at all).  I tried changing my systemUsage memory amount to high
values and to low values.  I have done it with and without producer flow
control. Still at about 700 connections the exception happens and
disconnects most, if not all of my clients, and will not allow any new
clients to connect either.

I also removed some other processes from the server machine to make sure
there was pleanty of memory space for it, and also changed my clients to not
actually send anything, just make a connection and hold it.  Even with this
it still breaks at 700 connections and 0 messages for being out of memory.

I know ESB 7.0.2 does not contain the latest version of ActiveMQ but I
cannot change this easily.  Is there any other information or ideas to help
avoid this problem and get a large number of connections?


View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message