Problem starting Glassfish on a VPS
- by Raydon
I am attempting to install Glassfishv3 on my Ubuntu (8.04) VPS using Java 1.6.
I initially tried starting the server using:
asadmin start-domain
and received the following error message:
JVM failed to start: com.sun.enterprise.admin.launcher.GFLauncherException: 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
Command start-domain failed.
I attempted to run it again and received a different message:
Waiting for DAS 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.
If I run cat /proc/meminfo I get the following (all other values are 0kB):
MemTotal: 1310720 kB
MemFree: 1150668 kB
LowTotal: 1310720 kB
LowFree: 1150668 kB
I have checked the contents of glassfish/glassfish/domains/domain1/config/domain.xml and the JVM setting is:
-Xmx512m
Any help on resolving this problem would be appreciated.