Reputation: 1226
I have a personal server with Ubuntu 14
and 1GB RAM. I would like to configure Liferay
running in a Glassfish
in this server.
I'm trying, but the initialization process is giving to me this message:
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c8bd7000, 84496384, 0) failed; error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 84496384 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /opt/liferay-portal-6.2-ce-ga2/glassfish-3.1.2.2/domains/domain1/config/hs_err_pid6797.log
Command start-domain failed.
The DAS was stopped
Can someone suggest some configuration that I can use without change the server physical memory?
Thanks
Upvotes: 0
Views: 547
Reputation: 13857
You may encounter out-of-memory errors when launching the GlassFish with Liferay portal. To avoid these errors, set larger initial and maximum memory heap sizes with the -Xms and -Xmx options on admin console.
If you can't increase the RAM you may try the "Liferay with Glassfish Bundle". This is a preconfigured Glassfish server with Liferay Portal already installed. It is available at http://www.liferay.com/downloads/liferay-portal/available-releases.
According to the wiki docs it has the following requirements:
Upvotes: 1