Limit total memory consumption of Java process (in Cloud Foundry)
问题 Related to these two questions: How to set the maximum memory usage for JVM? What would cause a java process to greatly exceed the Xmx or Xss limit? I run a Java application on Cloud Foundry and need to make sure that the allocated memory is not exceeded. Otherwise, and this is the current issue, the process is killed by Cloud Foundry monitoring mechanisms (Linux CGROUP). The Java Buildpack automatically sets sane values for -Xmx and -Xss . By tuning the arguments and configuring the (maximum