<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: OutOfMemoryError : unable to create new native thread in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/outofmemoryerror-unable-to-create-new-native-thread/m-p/3773904#M97298</link>
    <description>Varun,&lt;BR /&gt;sorry that I did not make myself clear.&lt;BR /&gt;I think your maxdsiz_64bit is actually too low and should at least the same as maxdsiz.&lt;BR /&gt;&lt;BR /&gt;I also found:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=211942" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=211942&lt;/A&gt; which seems to point in the same direction.</description>
    <pubDate>Wed, 19 Apr 2006 09:06:03 GMT</pubDate>
    <dc:creator>Peter Godron</dc:creator>
    <dc:date>2006-04-19T09:06:03Z</dc:date>
    <item>
      <title>OutOfMemoryError : unable to create new native thread</title>
      <link>https://community.hpe.com/t5/operating-system-linux/outofmemoryerror-unable-to-create-new-native-thread/m-p/3773901#M97295</link>
      <description>Hi,&lt;BR /&gt;I am using SunOne Application Server, and i am executing some test cases testing failover of session ( with server resatrt ) with entity Bean, HomeHandled reference stored in the session.&lt;BR /&gt;While executing my testcases started failing.&lt;BR /&gt;When i saw into the server log i found that it failing with following error complaining java.lang.OutOfMemoryError: unable to create new native thread.&lt;BR /&gt;&lt;BR /&gt;Following is my system configuration :&lt;BR /&gt;Operating System : HP-UX B11.11&lt;BR /&gt;Architecture : PA_RISC&lt;BR /&gt;No. Of Processor : 4&lt;BR /&gt;Total Physical Memory : 4,192,256 kbyte&lt;BR /&gt;Free Physical Memory : 1,752,436 kbyte&lt;BR /&gt;Total Swap Space : 4,194,304 kbyte&lt;BR /&gt;Free Swap Space : 4,194,304 kbyte&lt;BR /&gt;Java Version : 1.5.0_01&lt;BR /&gt;I have Out Of Box installed on my machine.&lt;BR /&gt;Some pf the kernel parameter of Machine is :&lt;BR /&gt;max_thread_proc = 3000&lt;BR /&gt;maxdsiz = 2063835136&lt;BR /&gt;maxdsiz_64bit = 1073741824&lt;BR /&gt;maxfiles = 2048&lt;BR /&gt;maxfiles_lim = 2048&lt;BR /&gt;maxssiz = 8388608&lt;BR /&gt;maxssiz_64bit = 8388608&lt;BR /&gt;maxswapchunk = 2048&lt;BR /&gt;maxtsiz 67108864&lt;BR /&gt;maxtsiz_64bit = 1073741824&lt;BR /&gt;maxurpc = 75&lt;BR /&gt;maxuser = 512&lt;BR /&gt;maxvgs = 10&lt;BR /&gt;nproc = 2048&lt;BR /&gt;and ulimit is unlimited.&lt;BR /&gt;&lt;BR /&gt;Error seen in server.log&lt;BR /&gt;==========================&lt;BR /&gt;[#|2006-04-19T16:49:50.994+0530|WARNING|sun-appserver-ee8.1|javax.enterprise.sys&lt;BR /&gt;tem.stream.err|_ThreadID=352;|java.lang.OutOfMemoryError: unable to create new n&lt;BR /&gt;ative thread&lt;BR /&gt;        at java.lang.Thread.start0(Native Method)&lt;BR /&gt;        at java.lang.Thread.start(Thread.java:574)&lt;BR /&gt;        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.j&lt;BR /&gt;ava:833)&lt;BR /&gt;        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SS&lt;BR /&gt;LSocketImpl.java:1025)&lt;BR /&gt;        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.&lt;BR /&gt;java:619)&lt;BR /&gt;        at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.ja&lt;BR /&gt;va:59)&lt;BR /&gt;        at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65&lt;BR /&gt;)&lt;BR /&gt;        at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)&lt;BR /&gt;        at java.io.DataOutputStream.flush(DataOutputStream.java:106)&lt;BR /&gt;        at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198&lt;BR /&gt;)&lt;BR /&gt;        at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)&lt;BR /&gt;        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:94)&lt;BR /&gt;        at com.sun.jmx.remote.internal.PRef.invoke(Unknown Source)&lt;BR /&gt;        at javax.management.remote.rmi.RMIConnectionImpl_Stub.getDefaultDomain(Unknown Source)&lt;BR /&gt;        at javax.management.remote.rmi.RMIConnector$RMIClientCommunicatorAdmin.c&lt;BR /&gt;heckConnection(RMIConnector.java:1543)&lt;BR /&gt;        at com.sun.jmx.remote.internal.ClientCommunicatorAdmin$Checker.run(Clien&lt;BR /&gt;tCommunicatorAdmin.java:165)&lt;BR /&gt;        at java.lang.Thread.run(Thread.java:595)&lt;BR /&gt;========================================&lt;BR /&gt;Please help me to understand the issue.&lt;BR /&gt;I cant see any problem with system configuration also.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Varun</description>
      <pubDate>Wed, 19 Apr 2006 08:09:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/outofmemoryerror-unable-to-create-new-native-thread/m-p/3773901#M97295</guid>
      <dc:creator>Varun_5</dc:creator>
      <dc:date>2006-04-19T08:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: OutOfMemoryError : unable to create new native thread</title>
      <link>https://community.hpe.com/t5/operating-system-linux/outofmemoryerror-unable-to-create-new-native-thread/m-p/3773902#M97296</link>
      <description>Varun,&lt;BR /&gt;is your maxdsiz_64bit correct?&lt;BR /&gt;Less than maxdsiz ?</description>
      <pubDate>Wed, 19 Apr 2006 08:20:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/outofmemoryerror-unable-to-create-new-native-thread/m-p/3773902#M97296</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-04-19T08:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: OutOfMemoryError : unable to create new native thread</title>
      <link>https://community.hpe.com/t5/operating-system-linux/outofmemoryerror-unable-to-create-new-native-thread/m-p/3773903#M97297</link>
      <description>yes peter,&lt;BR /&gt;&lt;BR /&gt;Value of maxdsiz_64bit on my machine is 1073741824&lt;BR /&gt;maxdsiz = 2063835136&lt;BR /&gt;maxdsiz_64bit = 1073741824&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Apr 2006 08:58:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/outofmemoryerror-unable-to-create-new-native-thread/m-p/3773903#M97297</guid>
      <dc:creator>Varun_5</dc:creator>
      <dc:date>2006-04-19T08:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: OutOfMemoryError : unable to create new native thread</title>
      <link>https://community.hpe.com/t5/operating-system-linux/outofmemoryerror-unable-to-create-new-native-thread/m-p/3773904#M97298</link>
      <description>Varun,&lt;BR /&gt;sorry that I did not make myself clear.&lt;BR /&gt;I think your maxdsiz_64bit is actually too low and should at least the same as maxdsiz.&lt;BR /&gt;&lt;BR /&gt;I also found:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=211942" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=211942&lt;/A&gt; which seems to point in the same direction.</description>
      <pubDate>Wed, 19 Apr 2006 09:06:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/outofmemoryerror-unable-to-create-new-native-thread/m-p/3773904#M97298</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-04-19T09:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: OutOfMemoryError : unable to create new native thread</title>
      <link>https://community.hpe.com/t5/operating-system-linux/outofmemoryerror-unable-to-create-new-native-thread/m-p/3773905#M97299</link>
      <description>Peter,&lt;BR /&gt;I have gone through that mail thread but it doesn't look like solving the stated problem. Is there any chance that test application or application server can be suspected ?</description>
      <pubDate>Wed, 19 Apr 2006 09:37:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/outofmemoryerror-unable-to-create-new-native-thread/m-p/3773905#M97299</guid>
      <dc:creator>Varun_5</dc:creator>
      <dc:date>2006-04-19T09:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: OutOfMemoryError : unable to create new native thread</title>
      <link>https://community.hpe.com/t5/operating-system-linux/outofmemoryerror-unable-to-create-new-native-thread/m-p/3773906#M97300</link>
      <description>Hi Varun,&lt;BR /&gt;&lt;BR /&gt;Does the test case failure creates "core" file or "hs_err*.log" files?&lt;BR /&gt;&lt;BR /&gt;Whats the patch level of the system? &lt;BR /&gt;Are the required patches for the Java version applied?&lt;BR /&gt;&lt;BR /&gt;If the "core" file is being generated, you can use WDB or GDB to examine it.&lt;BR /&gt;&lt;BR /&gt;You try reducing the thread stack size using "-Xss" option or increasing the heap size.&lt;BR /&gt;&lt;BR /&gt;You might want to use "HPjconfig" tool to verify the kernel tunnables.&lt;BR /&gt;&lt;BR /&gt;Refer the following link for details&lt;BR /&gt;&lt;A href="http://www.hp.com/products1/unix/java/?jumpid=go/java" target="_blank"&gt;http://www.hp.com/products1/unix/java/?jumpid=go/java&lt;/A&gt;</description>
      <pubDate>Thu, 20 Apr 2006 01:13:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/outofmemoryerror-unable-to-create-new-native-thread/m-p/3773906#M97300</guid>
      <dc:creator>Sameer_Nirmal</dc:creator>
      <dc:date>2006-04-20T01:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: OutOfMemoryError : unable to create new native thread</title>
      <link>https://community.hpe.com/t5/operating-system-linux/outofmemoryerror-unable-to-create-new-native-thread/m-p/3773907#M97301</link>
      <description>Hi Sameer,&lt;BR /&gt;I will use HPjconfig and try to figure out if some more kernel parameter can be tunned for jvm.&lt;BR /&gt;I will keep posting about the progress.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Varun</description>
      <pubDate>Thu, 20 Apr 2006 07:49:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/outofmemoryerror-unable-to-create-new-native-thread/m-p/3773907#M97301</guid>
      <dc:creator>Varun_5</dc:creator>
      <dc:date>2006-04-20T07:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: OutOfMemoryError : unable to create new native thread</title>
      <link>https://community.hpe.com/t5/operating-system-linux/outofmemoryerror-unable-to-create-new-native-thread/m-p/3773908#M97302</link>
      <description>Did you ever get this resolved? We're getting a similar error using JBOSS.&lt;BR /&gt;&lt;BR /&gt;Seth</description>
      <pubDate>Tue, 23 Jan 2007 13:27:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/outofmemoryerror-unable-to-create-new-native-thread/m-p/3773908#M97302</guid>
      <dc:creator>Seth Kaplan</dc:creator>
      <dc:date>2007-01-23T13:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: OutOfMemoryError : unable to create new native thread</title>
      <link>https://community.hpe.com/t5/operating-system-linux/outofmemoryerror-unable-to-create-new-native-thread/m-p/3773909#M97303</link>
      <description>Just to clarify:&lt;BR /&gt; &lt;BR /&gt;&amp;gt; maxdsiz = 2063835136&lt;BR /&gt;&amp;gt; maxdsiz_64bit = 1073741824&lt;BR /&gt; &lt;BR /&gt;is quite wrong! If maxdsiz_64 is less than maxdsiz, then both parameters are silently enforced to the maxdsiz_64 value. ALWAYS set maxdsiz_64 larger than maxdsiz.&lt;BR /&gt; &lt;BR /&gt;As far as OutOfMemory, there are many, many causes but generally it has nothing to do with physical memory. HP-UX is a virtual memory system so available memory is a combination of RAM plus swap space. But there are several limits that are much less than virtual memory. Kernel parameter maxdsiz sets the maximum local data (heap) for a 32 bit process. Parameter maxdsiz_64 refers only to 64 bit processes. shmmax refers to the largest shared memory segment allowed. If a set of programs need a larger segment, this kernel parameter must be adjusted.&lt;BR /&gt; &lt;BR /&gt;To see all the ulimit values, use ulimit -a. If this fails, your shell is badly out of date (ksh needs a patch). Note also that shared memory (32 bit programs) must be mapped in a single space and can be heavily fragmented with InterProcess Comunication (IPC) objects like semaphores and other shared memory segments.&lt;BR /&gt; &lt;BR /&gt;You may have a massively oversized kernel (normal is 8 to 15 megs) due to an oversized parameter, or your buffer cache is far too large (should be 600to 1200 megs).</description>
      <pubDate>Tue, 23 Jan 2007 17:54:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/outofmemoryerror-unable-to-create-new-native-thread/m-p/3773909#M97303</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2007-01-23T17:54:08Z</dc:date>
    </item>
  </channel>
</rss>

