Operating System - HP-UX
1845844 Members
3360 Online
110250 Solutions
New Discussion

Java server process fails with OutOfMemory error

 
Christian Hiller_1
New Member

Java server process fails with OutOfMemory error

Hello,

we are running an ERP-System based on a java server. Now, we have the problem that the server terminates sometime with the error message:

Exception in thread "CompileThread0" java.lang.OutOfMemoryError: requested 74286

0 bytes

Possible causes:
- not enough swap space left, or
- kernel parameter MAXDSIZ is very small.
JVM Starter by LDS ver. 2.8.4 Sep 1 2003

Started at Mon Nov 22 07:52:27 2004
Out of memory while reading in symbol table of ../lib/zeus/lib/jdk/hpux/jre/lib
/PA_RISC2.0/hotspot/libjvm.sl
( 0) 0xc6479468 [../lib/zeus/lib/jdk/hpux/jre/lib/PA_RISC2.0/hotspot/libjvm
.sl]
( 1) 0xc63f1b30 [../lib/zeus/lib/jdk/hpux/jre/lib/PA_RISC2.0/hotspot/libjvm
.sl]
( 2) 0xc6588f68 [../lib/zeus/lib/jdk/hpux/jre/lib/PA_RISC2.0/hotspot/libjvm
.sl]
( 3) 0xc66f812c [../lib/zeus/lib/jdk/hpux/jre/lib/PA_RISC2.0/hotspot/libjvm
.sl]
( 4) 0xc672c20c [../lib/zeus/lib/jdk/hpux/jre/lib/PA_RISC2.0/hotspot/libjvm
.sl]
( 5) 0xc66cba78 [../lib/zeus/lib/jdk/hpux/jre/lib/PA_RISC2.0/hotspot/libjvm
.sl]
( 6) 0xc66c8054 [../lib/zeus/lib/jdk/hpux/jre/lib/PA_RISC2.0/hotspot/libjvm
.sl]
( 7) 0xc66ae79c [../lib/zeus/lib/jdk/hpux/jre/lib/PA_RISC2.0/hotspot/libjvm
.sl]
( 8) 0xc6603168 [../lib/zeus/lib/jdk/hpux/jre/lib/PA_RISC2.0/hotspot/libjvm
.sl]
( 9) 0xc6602c50 [../lib/zeus/lib/jdk/hpux/jre/lib/PA_RISC2.0/hotspot/libjvm
.sl]

The server process is running with the following java parameters:

-XX:MaxPermSize=110m
-Xms256m
-Xmx768m
-DORBgcTimeout=86400

The java version is:

java version "1.3.1.12"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1.12-031205-12:07)
Java HotSpot(TM) Server VM (build 1.3.1 1.3.1.12-_05_dec_2003_13_05 PA2.0, mixed mode)

System hpux 11.11 (PA_RISC)/ Goldbase Dec 02, model 9000/800/rp7410.

The machine has 8 GB physical RAM and 4 GB swap space. The MAXDSIZ is set to 1825361100.

Does someone know why the server process aborts sometime?

Christian
5 REPLIES 5
Sridhar Bhaskarla
Honored Contributor

Re: Java server process fails with OutOfMemory error

Hi Christian,

8 GB of RAM and 4 GB of swap space?. I assume you enabled 'swapmem_on' kernel parameter. If it is only 4 GB swap means, you can only bring up 4 GB worth processes. Post your 'swapinfo -t' output. I believe you may be running out of swap.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
bhavin asokan
Honored Contributor

Re: Java server process fails with OutOfMemory error

hi,

see the following link.it gives a good explanation about this problem.

http://support.bea.com/support_news/product_troubleshooting/Investigating_Out_of_Memory_Memory_Leak_Pattern.html


regds,
bhavin asokan
Honored Contributor

Re: Java server process fails with OutOfMemory error

Christian Hiller_1
New Member

Re: Java server process fails with OutOfMemory error

Here are my swapinfo

# swapinfo -t
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4194304 0 4194304 0% 0 - 1 /dev/vg00/lvol2
dev 4194304 0 4194304 0% 0 - 0 /dev/vg00/lvol10
reserve - 3400676 -3400676
memory 6376260 1898816 4477444 30%
total 14764868 5299492 9465376 36% - 0 -
Kim_18
Advisor

Re: Java server process fails with OutOfMemory error

We have a java based system that received out of memory errors on install. It did not gives us the out of swap space message or MAXDSIZ parameter may be too small that you are recieving, so our fix may be completely different but we ended up having to increase the max_thread_proc kernel parameter. Hope that helps.