users@glassfish.java.net

Memory/JVM setup to run glassfish 3.1.1... am i missing something obvious?

From: <forums_at_java.net>
Date: Mon, 26 Dec 2011 13:16:12 -0600 (CST)

My 32 bit CentOS install should have enough free memory (over 1 GB) but
glassfish won't start. Tomcat starts fine with these JVM settings (i tried
lots of mem sizes in JAVA_OPTS below). 

I must be missing something obvious!  It sounds like i should be able to
download glassfish 3.1.1 zip file, unzip it  and run "asadmin start-domain"
but no luck so far.

/opt/glassfish3>set | grep JAVA
JAVA_HOME=/opt/jdk
JAVA_OPTS='-server -XX:PermSize=256m -Xms384m -Xmx384m'

/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/877604