We launched the JVM application (Scala), Java 1.7, and are trying to decide how to allocate memory. We have one application running in a docker container. If the docker container is allocated 4 GB of RAM, should we allocate 4 GB (or maybe a little less to be safe) for the JVM?
As I understand it, there are no other processes in the docker container besides what is called from the entry point, so we do not need to worry about using memory other than the JVM - is this true or simplification? Are there any other questions we need to ask?
EDIT . We use Mesos / Marathon to deploy docker images. I suppose it sets limits on the group in memory (at least it gives the impression that it is), but I could definitely be wrong.
java docker jvm
patwhite
source share