[jboss-user] [Beginner's Corner] - java.lang.OutOfMemoryError: unable to create new native thread

prabhu k do-not-reply at jboss.com
Tue Apr 5 01:45:29 EDT 2011

prabhu k [http://community.jboss.org/people/prabhucbe] created the discussion

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

To view the discussion, visit: http://community.jboss.org/message/597699#597699

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%*

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110405/e735f4a8/attachment.html 

More information about the jboss-user mailing list