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:
 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(Thread.java:640)
        at
java.util.concurrent.ThreadPoolExecutor.addIfUnderMaximumPoolSize(ThreadPoolExecutor.java:727)
        at
java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:657)
        at
org.apache.activemq.transport.AbstractInactivityMonitor.writeCheck(AbstractInactivityMonitor.java:142)
        at
org.apache.activemq.transport.AbstractInactivityMonitor$2.run(AbstractInactivityMonitor.java:111)
        at
org.apache.activemq.thread.SchedulerTimerTask.run(SchedulerTimerTask.java:33)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)

I looked at
http://www.commonsensecode.com/2010/07/02/activemq-supporting-thousands-of-concurrent-connections/
and http://www.pepperdust.org/?p=150 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?

Thanks



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/java-lang-OutOfMemoryError-unable-to-create-new-native-thread-tp4662804.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to