BladeSystem Forums have moved here
To make BladeSystem information easier to find, we have moved the BladeSystem forums here, to Servers and Operating Systems.
Languages and Scripting
Showing results for 
Search instead for 
Do you mean 

Java 1.4.2 Xmx not working

Highlighted
Occasional Visitor

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?
4 REPLIES
Esteemed Contributor

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

Re: Java 1.4.2 Xmx not working

I obviously did, otherwise not even the Xms option wouldn't have helped.
Esteemed Contributor

Re: Java 1.4.2 Xmx not working

Oops, that was rather stupid of me. I'm investigating.
Occasional Visitor

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...