10 Replies Latest reply: Sep 19, 2013 9:21 AM by Maxime Gréau RSS

java.lang.OutOfMemoryError: unable to create new native thread

prabhu k Newbie

Hello All,

               We have written client/server application. we have deployed the server jars into JBoss Application server. The Jboss service running successfully in many client/server machine. But Jboss service has been hanged after 5-6 days recursively. then we need to restart the service to come out of this problem again and again. The following error message that we got from the server log.

 

Note :  We are using wrapper.exe to start and Stop the services of JBoss AS.

 

2011-02-24 00:56:17,095 ERROR [STDERR] Exception in thread "RequestController-5"

2011-02-24 00:56:17,096 ERROR [STDERR] java.lang.OutOfMemoryError: unable to create new native thread

2011-02-24 00:56:17,096 ERROR [STDERR]           at java.lang.Thread.start0(Native Method)

2011-02-24 00:56:17,096 ERROR [STDERR]           at java.lang.Thread.start(Unknown Source)

2011-02-24 00:56:17,096 ERROR [STDERR]           at org.jacorb.poa.RPPoolManager.addProcessor(Unknown Source)

2011-02-24 00:56:17,096 ERROR [STDERR]           at org.jacorb.poa.RPPoolManager.getProcessor(Unknown Source)

2011-02-24 00:56:17,096 ERROR [STDERR]           at org.jacorb.poa.RequestController.processRequest(Unknown Source)

2011-02-24 00:56:17,096 ERROR [STDERR]           at org.jacorb.poa.RequestController.run(Unknown Source)

2011-02-24 09:46:48,863 ERROR [STDERR] Exception in thread "Listener:40584"

2011-02-24 09:46:48,863 ERROR [STDERR] java.lang.OutOfMemoryError: unable to create new native thread

2011-02-24 09:46:48,863 ERROR [STDERR]           at java.lang.Thread.start0(Native Method)

2011-02-24 09:46:48,864 ERROR [STDERR]           at java.lang.Thread.start(Unknown Source)

2011-02-24 09:46:48,864 ERROR [STDERR]           at com.arjuna.ats.internal.arjuna.recovery.Listener.run(Listener.java:135)

 

We have also mentioned the run.conf file details

 

rem JVM memory allocation pool parameters. Modify as appropriate.

set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m

 

 

rem With Sun JVMs reduce the RMI GCs to once per hour

set JAVA_OPTS=%JAVA_OPTS% -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

 

 

rem JPDA options. Uncomment and modify as appropriate to enable remote debugging.

rem set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y %JAVA_OPTS%