Operating System - HP-UX
1833863 Members
2325 Online
110063 Solutions
New Discussion

Re: memory problem when using java

 
Neelesh Tripathi_1
Occasional Contributor

memory problem when using java

Hi,
I am getting some error related to memory when excuting java program in HPUX.

Warning:system call pthread_create failed.
return value: 11
errno: 22
parameter:thread = 4a
attr = 48
start_routine = 7aea8656
arg = a402f0
startup java.lang.OutOfMemoryError: unable to create new native thread

Do I need to change any patches or kernel parametres .

Thanks

Neelesh

2 REPLIES 2
Armin Feller
Honored Contributor

Re: memory problem when using java

This was due to hitting the limit imposed by the nkthreads kernel parameter. Please increase this kernel tunable.

http://docs.hp.com/hpux/onlinedocs/939/KCParms/KCparam.NkernelThreadsMax.html
Tim Adamson_1
Honored Contributor

Re: memory problem when using java

Make sure you have the required patches installed.

Make sure you have enough swap. 2* RAM is a good estimate.

Make sure that maxdsiz is large enough (as a guess, set it to 1Gb)

Make sure nkthreads and max_thread_proc are high enough.

Also ensure other basic kernel parameters are high enough too (nproc, etc)

They are some suggestions.

You would need to post some more details about your server configuration for further help - kernel parameters (kmtune/sysdef, swapinfo -tam, amount of RAM, etc).


Tim.
Yesterday is history, tomorrow is a mystery, today is a gift. That's why it's called the present.