Operating System - Tru64 Unix
1748182 Members
3579 Online
108759 Solutions
New Discussion юеВ

Re: Java 1.4.2 Xmx not working

 
Mircea Scortar
New Member

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 4
Han Pilmeyer
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?
Mircea Scortar
New Member

Re: Java 1.4.2 Xmx not working

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

Re: Java 1.4.2 Xmx not working

Oops, that was rather stupid of me. I'm investigating.
Mircea Scortar
New Member

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