Operating System - HP-UX
1834704 Members
2777 Online
110069 Solutions
New Discussion

Warning:system call pthread_create failed.

 
Neelesh Tripathi_1
Occasional Contributor

Warning:system call pthread_create failed.

Hi,
I am trying to run some java application on HPUX 11i I have java 1.4.0
I get the following error
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 kernel parameters or any pathes that are required for the same

Can anyone help me

Thanks
neelesh
4 REPLIES 4
T G Manikandan
Honored Contributor

Re: Warning:system call pthread_create failed.

i would gradually try increasing these kernel params

maxdsiz (for 32 bit applications)
maxssiz
maxtsiz
maxdsiz_64(64 bit applications)
maxssiz_64
maxtsiz_64
Also,
max_thread_proc
nkthread

Just check the present values for these above KP.

Revert

Armin Feller
Honored Contributor

Re: Warning:system call pthread_create failed.

I'm sure that was due to hitting the limit imposed by the nkthreads kernel parameter. Please increase this kernel tunable.

see also:
http://docs.hp.com/hpux/onlinedocs/939/KCParms/KCparam.NkernelThreadsMax.html
Steven Gillard_2
Honored Contributor

Re: Warning:system call pthread_create failed.

If you were hitting nkthread I'd expect a lot more to be going wrong! My money is on max_thread_proc, which controls the number of threads any one process can create. This is a very common one for java programs.

I would start by increasing max_thread_proc alone.

Regards,
Steve
Jordan Bean
Honored Contributor

Re: Warning:system call pthread_create failed.

You asked about patches.

http://www.hp.com/products1/unix/java/java2/sdkrte14/downloads/index.html

In addition to installing the latest patch bundles, you will need PHCO_29109 for 11i.