Question
Insufficient memory for Java Runtime Environment
Hello, I am testing deployment of a JEE application to a droplet with 512MB, and as I start the application server Wildfly (JBoss AS), I received this message:
3:42:45,663 INFO [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 75) Initializing Mojarra 2.2.11-jbossorg-1 20150505-1501 for context '/bbword'
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000e2320000, 37601280, 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 37601280 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /opt/wildfly-9.0.0.Final/hs_err_pid761.log
Is there really a sign of memory in the droplet, or something else? I can test the same application on Openshift’s free catriage (similar to digitalocean’s droplet).
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
Hi. I know it is a little late, but I have the same problem here. Did you have a chance to solve it?Thanks
As suggested below, adding a swap file resolved my problem. Thanks.