System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

unable to create new native thread when start WebLogic 8.1 on HP-UX 11.11

Ladislav Dvorak
Occasional Advisor

unable to create new native thread when start WebLogic 8.1 on HP-UX 11.11

Hello guys,

please I have one question, we migrate our application server from HP-UX 11.00 to HP-UX 11.11.

When I run this AS with (-Xms1424m -Xmx1424m) on HP-UX 11.00 there is no problem.

When I run with (-Xms1424m -Xmx1424m) on HP-UX 11.11 I get "java.lang.OutOfMemoryError: unable to create new native thread" message.

When I run with (-Xms3076m -Xmx3076m) on HP-UX 11.11, this is without problem again.

Please, can someone say me, why with the same setting of java heap, I have problem on different version of HP-UX.

I try check kernel parameters, installed patches and seems that all is correct (according HPjconfig).

Thank you for any info, which can explain this issue.

Ladislav Dvorak


11 REPLIES
Steven E. Protter
Exalted Contributor

Re: unable to create new native thread when start WebLogic 8.1 on HP-UX 11.11

Shalom,

First thing that comes to mind is the versions of JAVA are probably different on the two systems as the 11.00 system is out of support and hasn't seen a Java update in a few years.

Check JAVA version first.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ladislav Dvorak
Occasional Advisor

Re: unable to create new native thread when start WebLogic 8.1 on HP-UX 11.11

Shalom Steven,

java is the same. Is JDK 1.4.2_09. The application server was completely copied including java. That's why I dont see.

Thank
Dennis Handly
Acclaimed Contributor

Re: unable to create new native thread when start WebLogic 8.1 on HP-UX 11.11

How much swap space do you have? "swapinfo -tam"
How big is maxdsiz/maxdsiz_64bit?
Ladislav Dvorak
Occasional Advisor

Re: unable to create new native thread when start WebLogic 8.1 on HP-UX 11.11

Hi Dennis,

HP-UX 11.00 server

swapinfo -tam

Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 0 4096 0% 0 - 1 /dev/vg00/lvol2
reserve - 3263 -3263
memory 9945 949 8996 10%
total 14041 4212 9829 30% - 0 -

maxdsiz 0X11000000 = 272M
maxdsiz_64bit 0x0000000040000000 = 1024M


HP-UX 11.11 server

Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 16384 0 16384 0% 0 - 1 /dev/vg00/lvol2
reserve - 3989 -3989
memory 13289 52 13237 0%
total 29673 4041 25632 14% - 0 -

maxdsiz 0xc0000000 = 3072M
maxdsiz_64bit 0x100000000 = 4096M
Dennis Handly
Acclaimed Contributor

Re: unable to create new native thread when start WebLogic 8.1 on HP-UX 11.11

>total 14041 4212 9829 30%
>maxdsiz 0X11000000 = 272M
>maxdsiz_64bit 0x0000000040000000 = 1024M

I can't see how it works for 11.00, since smaller. For 32 bit mode you only have 272 Mb. And 1 Gb for 64 bit mode. (I don't see -d64 in your java options.)

>total 29673 4041 25632 14%
>maxdsiz 0xc0000000 = 3072M
>maxdsiz_64bit 0x100000000 = 4096M

You seem to have much larger maxdsiz.
In both, your swapspace since fine at the time you ran swapinfo(1m).

I suppose you could have too many threads?
What is max_thread_proc & nkthread?
Dennis Shin
Occasional Advisor

Re: unable to create new native thread when start WebLogic 8.1 on HP-UX 11.11

The results show the following command:

$kcusage -d nkthread
$kcusage -d max_thread_proc
Dennis Handly
Acclaimed Contributor

Re: unable to create new native thread when start WebLogic 8.1 on HP-UX 11.11

>Dennis Shin: the following command: kcusage

This won't work too well on 11.11. :-)
Dennis Shin
Occasional Advisor

Re: unable to create new native thread when start WebLogic 8.1 on HP-UX 11.11

Oops sorry..kcusage not work on 11.11


Try the following test
1. reduces the number of thread (ex:using weblogic thread pool..)

2. reduces Thread Stack Size (ex:-Xss256k)

3. reduces Java Heap..

4. using 64bit JVM (There are some performance degradation)
Ladislav Dvorak
Occasional Advisor

Re: unable to create new native thread when start WebLogic 8.1 on HP-UX 11.11

Server with HP-UX 11.00

nkthread 3635
max_thread_proc 1024

Server with HP-UX 11.11

nkthread 6000
max_thread_proc 4096

All java parameters are here:-Xverbosegc:file=server2/logs/gc_log.out -server -Xms2560m -Xmx2560m -XX:NewSize=400m -XX:MaxNewSize=400m -XX:SurvivorRatio=6 -XX:MaxPermSize=256m -XX:PermSize=256m -da -Dplatform.home=/opt/wli8/wlp813 -Dwls.home=/opt/wli8/wlp813/server -Dwli.home=/opt/wli8/wlp813/integration -Dlog4j.configuration=file:/opt/wli8/wlp813/common/lib/workshopLogCfg.xml -Dweblogic.management.discover=false -Dweblogic.management.server=http://172.6.2.4:7003 -Dweblogic.security.SSL.ignoreHostnameVerify=true -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole=false -Dweblogic.webservice.i18n.charset=utf-8 -Dweblogic.security.SSL.enforceConstraints=off

Ladislav Dvorak
Occasional Advisor

Re: unable to create new native thread when start WebLogic 8.1 on HP-UX 11.11

>Try the following test
>1. reduces the number of thread (ex:using weblogic thread pool..)
Isn't possible now - the application is tuned for another threads setting

>2. reduces Thread Stack Size (ex:-Xss256k)
I try it, the application with Xms/x1424m heap is running correctly.

>3. reduces Java Heap..
When I set Xms/x1224m the server is running correctly too (so far - 1 day)

>4. using 64bit JVM (There are some performance degradation)
We dont have test application with 64bit java. Not sure if WebLogic 8.1.3 is running on 64-bit.
Ladislav Dvorak
Occasional Advisor

Re: unable to create new native thread when start WebLogic 8.1 on HP-UX 11.11

Hello guys,

we tried set maxdsiz parameter on HP-UX 11.11 to 272 MB. The value as have this parameter on HP-UX 11.00. But server's behaviour is the same.