Operating System - Linux
1748203 Members
3229 Online
108759 Solutions
New Discussion юеВ

Re: "Exception in thread" error ................

 
hp_user_1
Regular Advisor

"Exception in thread" error ................

Hi,

I am running JAVA based applications on hpux 11i with 4 cpus, 8gb memory and 6gb of swap. The dbc_max_pct and maxdsiz kernel parameters are 10 and 2gb respectively. Even then I am getting the following message:

"Exception in thread "CompileThread0" java.lang.OutOfMemoryError: requested 32756 bytes for ChunkPool::allocate
Possible causes:
- not enough swap space left, or
- kernel parameter MAXDSIZ is very small.
Java out of memory messages are marked with pid: 27207 in /var/adm/syslog/syslog.log."

Any help....

2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: "Exception in thread" error ................

Please post kmtune output.

maxdsiz and maxdsiz64 may be relavent here.

swapinfo -tam

http://docs.hp.com/en/1219/tuningwp.html

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
James R. Ferguson
Acclaimed Contributor

Re: "Exception in thread" error ................

Hi:

Start by looking at your swap space as your application runs or attempts to run:

# swapinfo -tam

If you don't see a line labeled "memory", then you don't have pseudo-swap enabled. Turning that on will help for swap reservation purposes.

Use 'kmtune' to look at your kernel settings. See the manpages for details. If you are running a 64-bit process, make sure you set 'maxdsiz_64bit' high-enough.

Remember that many kernel parameters are "fences" to prevent on badly written, or one malicious, process form consuming all of a resource.

See this guide, too:

http://docs.hp.com/en/TKP-90202/index.html

Regards!

...JRF...