users@glassfish.java.net

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

From: <glassfish_at_javadesktop.org>
Date: Mon, 15 Feb 2010 03:29:47 PST

Hi
I have 4 questions.

As per the reported bug# 3148 in Glassfish this is resolved in beta3 branch b50g
https://glassfish.dev.java.net/issues/show_bug.cgi?id=3148

I am using the version "Sun Java System Application Server 9.1_02 (build b04-fcs)"
Will this version includes the bug fix?

How will I set GC log through the admin GUI? or through the command prompt?

Do I need to increase the heap size in Application server-->JVM Settings-->JVM Options???

How can I fix the following error?
I got OutOfMemoryError when running for long time(6days) and got the following in the server.log


[#|2010-02-13T04:04:08.292-0600|SEVERE|sun-appserver9.1|javax.enterprise.resource.corba.ee._CORBA_.rpc.transport|_ThreadID=21;_ThreadName=Thread-26;java.lang.OutOfMemoryError: unable to create new native thread;_RequestID=5d42aaf0-7895-4abf-b6c7-a5f3059ec129;|"IOP00710313: (INTERNAL) Worker thread creation failure; cause java.lang.OutOfMemoryError: unable to create new native thread."
org.omg.CORBA.INTERNAL: vmcid: SUN minor code: 313 completed: No
        at com.sun.corba.ee.impl.logging.ORBUtilSystemException.workerThreadCreationFailure(ORBUtilSystemException.java:7766)
        at com.sun.corba.ee.impl.logging.ORBUtilSystemException.workerThreadCreationFailure(ORBUtilSystemException.java:7789)
        at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl.createWorkerThread(ThreadPoolImpl.java:356)
        at com.sun.corba.ee.impl.orbutil.threadpool.WorkQueueImpl.addWork(WorkQueueImpl.java:161)
        at com.sun.enterprise.connectors.work.WorkCoordinator.submitWork(WorkCoordinator.java:131)
        at com.sun.enterprise.connectors.work.CommonWorkManager.scheduleWork(CommonWorkManager.java:254)
        at com.sun.enterprise.connectors.work.CommonWorkManager.scheduleWork(CommonWorkManager.java:228)
        at com.sun.genericra.inbound.InboundJmsResource.start(InboundJmsResource.java:77)
        at com.tibco.tibjms.TibjmsConnectionConsumer._dispatchMessages(TibjmsConnectionConsumer.java:193)
        at com.tibco.tibjms.TibjmsConnectionConsumer$MR.run(TibjmsConnectionConsumer.java:57)
        at java.lang.Thread.run(Thread.java:619)
|#]

[#|2010-02-13T04:04:19.045-0600|FINER|sun-appserver9.1|com.sun.genericjmsra|_ThreadID=21;_ThreadName=Thread-26;ClassName=com.sun.genericra.inbound.InboundJmsResourcePool;MethodName=_getServerSession;_RequestID=5d42aaf0-7895-4abf-b6c7-a5f3059ec129;|JMS provider is getting the ServerSession|#]

[#|2010-02-13T04:04:19.046-0600|FINE|sun-appserver9.1|com.sun.genericjmsra|_ThreadID=21;_ThreadName=Thread-26;ClassName=com.sun.genericra.inbound.InboundJmsResourcePool$PauseObject;MethodName=pause;_RequestID=5d42aaf0-7895-4abf-b6c7-a5f3059ec129;|Waiting for :1266055459046|#]

[#|2010-02-13T04:09:07.347-0600|WARNING|sun-appserver9.1|sun.rmi.transport.tcp|_ThreadID=8163;_ThreadName=RMI TCP Accept-0;_RequestID=d12ba3e5-cd6b-42de-b31b-856674db5210;|RMI TCP Accept-0: accept loop for ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=53213] throws
java.lang.OutOfMemoryError: unable to create new native thread
        at java.lang.Thread.start0(Native Method)
        at java.lang.Thread.start(Thread.java:597)
        at java.util.concurrent.ThreadPoolExecutor.addIfUnderMaximumPoolSize(ThreadPoolExecutor.java:727)
        at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:657)
        at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:384)
        at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:341)
        at java.lang.Thread.run(Thread.java:619)
|#]
[Message sent by forum member 'deepujs' (deepu.janardhananachary_at_ust-global.com)]

http://forums.java.net/jive/thread.jspa?messageID=386742