Operating System - HP-UX
1822894 Members
3653 Online
109645 Solutions
New Discussion юеВ

modifying kernel params for java.lang.outofmemoryerror

 
Mandosa
Regular Advisor

modifying kernel params for java.lang.outofmemoryerror

i have been working through the forums trying to deal with a nagging java.lang.outofmemoryerror. i seem to be making progress, but am still getting the error about once or twice a day. i've increased java heap sizes, and done some kernel tuning. most documention seems to point to the max_thread_proc value of being most important. i've increased it, but have seen recomendations for numbers still quite higher than what mine is currently set. Is there some guide for setting this parameter according to system specs? I don't want to set it too high and introduce new problems. max_thread_proc is currently 512, was 128.

HPUX 11.11
2GB RAM
Java 1.3.1.09
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor

Re: modifying kernel params for java.lang.outofmemoryerror

Hi Mark:

It is most informative if you post the standard 'errno' value along with any textual message.

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: modifying kernel params for java.lang.outofmemoryerror

Shalom Mark,

There are recommendations on the hp web site http://www.hp.co/go/java

Patches, kernel paramaters, everything.

Also check, maxuprc and nproc

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
Mandosa
Regular Advisor

Re: modifying kernel params for java.lang.outofmemoryerror

increased max_thread_proc again from 512 to 1024. increased nkthreads to 4096. better, but still went south after a while. finally i have restarted java with the -green paramater and so far so good. as far as a know, the -green paramater controls the threading method.
Raj D.
Honored Contributor

Re: modifying kernel params for java.lang.outofmemoryerror

Hi Mark,

Have you installed the latest Java Patches.

Check this out:

HP-UX 11.11 patches required for Java├в ┬в

Also:
http://www.hp.com/products1/unix/java/patches/index.html


Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Srini Jay
Valued Contributor

Re: modifying kernel params for java.lang.outofmemoryerror

Mark,
You can use the HP jConfig tool downloadable from http://www.hp.com/products1/unix/java/ to find which kernel parameter needs tuning and all.

If after changing the parameters also you get the out of memory exception, do post the complete exception listing (error log or whatever you have!)

-Srini