It seems there is enough free memory (over 1 GB) but glassfish won't start on
this 32 bit CentOS server. Tomcat starts fine with these JVM settings (i
tried lots of mem sizes in JAVA_OPTS below):
/opt/glassfish3>set | grep JAVA
JAVA_HOME=/opt/jdk
JAVA_OPTS='-server -XX:PermSize=256m -Xms384 -Xmx384'
/opt/glassfish3>cat /proc/meminfo
MemTotal: 2097152 kB
MemFree: 1324648 kB
/opt/glassfish3>ulimit -a
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
stack size (kbytes, -s) 10240
/opt/glassfish3>which java
/opt/jdk/bin/java
/opt/glassfish3>java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Server VM (build 20.1-b02, mixed mode)
/opt/glassfish3/bin>./asadmin start-domain
Waiting for domain1 to start .Error starting domain domain1.
The server exited prematurely with exit code 1.
Before it died, it produced the following output:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
Command start-domain failed.
--
[Message sent by forum member 'pkcinna']
View Post: http://forums.java.net/node/877603