Operating System - Linux
1753485 Members
4464 Online
108794 Solutions
New Discussion юеВ

Re: Java OutOfMemoryError, Out of swap space?

 
AndersDRSTO
New Member

Java OutOfMemoryError, Out of swap space?

Hi,

I am facing problem with OutOfMemoryError on HP-UX with Java , I am getting following error ever 4 days.

Exception in thread "CompilerThread1" java.lang.OutOfMemoryError: requested 32756 bytes for ChunkPool::allocat
e. Out of swap space?
Possible causes:
- not enough swap space left, or
- kernel parameter MAXDSIZ is very small.
Out of memory while reading in symbol table of /opt/java1.4/jre/lib/PA_RISC2.0/server/libjvm.sl
( 0) 0xc7ec0114 [/opt/java1.4/jre/lib/PA_RISC2.0/server/libjvm.sl]
( 1) 0xc7d54218 [/opt/java1.4/jre/lib/PA_RISC2.0/server/libjvm.sl]
( 2) 0xc7d54988 [/opt/java1.4/jre/lib/PA_RISC2.0/server/libjvm.sl]
( 3) 0xc7d54b54 [/opt/java1.4/jre/lib/PA_RISC2.0/server/libjvm.sl]
( 4) 0xc807f5e0 [/opt/java1.4/jre/lib/PA_RISC2.0/server/libjvm.sl]
( 5) 0xc807cb04 [/opt/java1.4/jre/lib/PA_RISC2.0/server/libjvm.sl]
( 6) 0xc7feaf88 [/opt/java1.4/jre/lib/PA_RISC2.0/server/libjvm.sl]
( 7) 0xc7fd4c94 [/opt/java1.4/jre/lib/PA_RISC2.0/server/libjvm.sl]
( 8) 0xc7fdbe54 [/opt/java1.4/jre/lib/PA_RISC2.0/server/libjvm.sl]
( 9) 0xc7fdbfec [/opt/java1.4/jre/lib/PA_RISC2.0/server/libjvm.sl]
(10) 0xc7fe2c14 [/opt/java1.4/jre/lib/PA_RISC2.0/server/libjvm.sl]
(11) 0xc7dd6828 [/opt/java1.4/jre/lib/PA_RISC2.0/server/libjvm.sl]
(12) 0xc7dd31c4 [/opt/java1.4/jre/lib/PA_RISC2.0/server/libjvm.sl]
(13) 0xc7d71384 [/opt/java1.4/jre/lib/PA_RISC2.0/server/libjvm.sl]
(14) 0xc7ddca48 [/opt/java1.4/jre/lib/PA_RISC2.0/server/libjvm.sl]
(15) 0xc7ddc114 [/opt/java1.4/jre/lib/PA_RISC2.0/server/libjvm.sl]
(16) 0xc8110d78 [/opt/java1.4/jre/lib/PA_RISC2.0/server/libjvm.sl]
(17) 0xc810cf04 [/opt/java1.4/jre/lib/PA_RISC2.0/server/libjvm.sl]
(18) 0xc810ce70 [/opt/java1.4/jre/lib/PA_RISC2.0/server/libjvm.sl]
(19) 0xc803fef8 [/opt/java1.4/jre/lib/PA_RISC2.0/server/libjvm.sl]
(20) 0xc005b2e4 __pthread_body + 0x44 [/usr/lib/libpthread.1]
(21) 0xc0065574 __pthread_start + 0x14 [/usr/lib/libpthread.1]
Java out of memory messages are marked with pid: 13174 in /var/adm/syslog/syslog.log.

/Anders
8 REPLIES 8
sajeer_2
Regular Advisor

Re: Java OutOfMemoryError, Out of swap space?


Hi Anders,

Did you install the latest patches for java?

you can get the patch details here

http://h18012.www1.hp.com/java/patches/index.html


sajeer_2
Regular Advisor

Re: Java OutOfMemoryError, Out of swap space?


You can use HP jconfig Java configuration tool for tuning HP-UX for java.

get the tool from,
http://www.hp.com/products1/unix/java/java2/hpjconfig/index.html
AndersDRSTO
New Member

Re: Java OutOfMemoryError, Out of swap space?

About the patches...

When we tryed to install the patches we got this log:
see the file.

And later when we used the HPjconfig it showed that these patches where still missing. Are the patches correctly installed or does hpjconfig not work?

/Anders
AndersDRSTO
New Member

Re: Java OutOfMemoryError, Out of swap space?

This is the HPJconfig srceenshot to after we installed all the patches.
Dennis Handly
Acclaimed Contributor

Re: Java OutOfMemoryError, Out of swap space?

What does /usr/sbin/swapinfo -mt show?

Your HPJconfig srceenshot shows several missing patches, PHKL_32061. But it says you have it installed and it was superseded. I would hope HPJconfig handles that.
AndersDRSTO
New Member

Re: Java OutOfMemoryError, Out of swap space?

Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 6144 110 6034 2% 0 - 1 /dev/vg00/lvol2
dev 6144 111 6033 2% 0 - 1 /dev/vgdump/secswap
reserve - 4884 -4884
memory 4839 850 3989 18%
total 17127 5955 11172 35% - 0 -

Dennis Handly
Acclaimed Contributor

Re: Java OutOfMemoryError, Out of swap space?

11 Gb seems like enough swap space.
Bill Hassell
Honored Contributor

Re: Java OutOfMemoryError, Out of swap space?

Sounds like a classic memory leak from Java code. Start by checking ulimit -a for the Java environment to make sure you are not limiting memory there. Then periodically (every 5 or 10 minutes) run this command and append the results into a temp logfile:

UNIX95=1 ps -e -o vsz,pid,ppid,args | sort -rn | head -5 >> /var/tmp/bigprocs.log

The 5 largest processes will be listed. Watch for changes in process sizes.


Bill Hassell, sysadmin