Operating System - HP-UX
1831508 Members
3341 Online
110025 Solutions
New Discussion

Exception in thread "main" java.lang.OutOfMemoryError: unable to create new native thread

 
galea_1
New Member

Exception in thread "main" java.lang.OutOfMemoryError: unable to create new native thread

Hi,

I have the following error when trying to launch two instance of the same java written software on my server ( B.11.11 U 9000/800, 2 processors, 2GB of RAM).

I joined the kernel parameters.

Thanks
3 REPLIES 3
Joseph Loo
Honored Contributor

Re: Exception in thread "main" java.lang.OutOfMemoryError: unable to create new native thread

Hi,

not sure if this helps.

Have u try hpjmeter? it is free download and helps to detect performance bottleneck.

or hpjconfig? also free and allows you to tune your HP-UX 11.x and 11i PA-RISC for specfic types of Java applications.

the url:
http://www.hp.com/products1/unix/java/

regards.
what you do not see does not mean you should not believe
Vijaya Kumar_3
Respected Contributor

Re: Exception in thread "main" java.lang.OutOfMemoryError: unable to create new native thread

You may need to increase this kernel parameter

max_thread_proc

Btw, post your sysdef output.

-Vijay
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
Joseph Loo
Honored Contributor

Re: Exception in thread "main" java.lang.OutOfMemoryError: unable to create new native thread

fail to mention that hpjconfig (which requires you to run on a X display server) would assess the following kernel parameters and recommend the best value. the parameters are:
1) max_thread_proc,
2) maxdsiz,
3) maxfiles,
4) maxfiles_lim,
5) maxusers,
6) ncallout,
7) nfile,
8) nkthread and most definitely
9) nproc

looking at nproc (800), it seems small.

by the way, what is the application you are trying to run?
what you do not see does not mean you should not believe