Java 1.4.2 Xmx not working (199 Views)
Reply
Occasional Visitor
Mircea Scortar
Posts: 3
Registered: ‎05-12-2005
Message 1 of 5 (199 Views)

Java 1.4.2 Xmx not working

Hello, I am running Tomcat 5 on a Tru64 5.1B with Java 1.4.2 installed. Even though I specify -Xmx512 let's say (the machine has 1 GB of RAM), the heap would not increase above default size (100 MB or so I think) and the application crashes with java.lang.OutOfMemoryError or with JVM crash in native code. The only workaround I could use was to specify the -Xms512m parameter. Still, why -Xmx does not work?
Esteemed Contributor
Han Pilmeyer
Posts: 390
Registered: ‎01-27-2004
Message 2 of 5 (199 Views)

Re: Java 1.4.2 Xmx not working

Did you increase the kernel parameters in the proc system to allow a process to grow that large?
Occasional Visitor
Mircea Scortar
Posts: 3
Registered: ‎05-12-2005
Message 3 of 5 (199 Views)

Re: Java 1.4.2 Xmx not working

I obviously did, otherwise not even the Xms option wouldn't have helped.
Esteemed Contributor
Han Pilmeyer
Posts: 390
Registered: ‎01-27-2004
Message 4 of 5 (199 Views)

Re: Java 1.4.2 Xmx not working

Oops, that was rather stupid of me. I'm investigating.
Occasional Visitor
Mircea Scortar
Posts: 3
Registered: ‎05-12-2005
Message 5 of 5 (199 Views)

Re: Java 1.4.2 Xmx not working

I also have another problem; when it doesn't crash with java.lang.OutOfMemoryError, the native code in Java crasher with different errors: e.g. pool_alloc: out of memory: /vobs/.../pool.c

I heard in some places that max stack size of any thread (-Xss option) could be increased and solve the problem, but I wasn't that lucky...
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.