I followed the play deployment instruction and used "play clean stage" to package the application. After uploading the package to an aws EC2 instance, I tried to start it with the command:
target/universal/stage/bin/myapp -Dconfig.file=target/universal/stage/conf/application.conf
But it failed with the message:
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c5550000, 715849728, 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 715849728 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /tmp/jvm-14940/hs_error.log
I tried to add arguments like: -mem=512
or -Xms256m -Xmx512m
. But nothing works so far. Can someone help me on how to run the play app?