Question

How would I check the settings to see how much memory java is allowed to consume?

Posted December 28, 2015 1.8k views
NginxJava

how would I check the settings to see how much memory it is allowed to consume?

1 comment

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.

×
1 answer

You can configure the maximum size of Java’s memory allocation pool by passing the -Xmx flag to the Java process, e.g. -Xmx2048m. If you are running a Java-based service like Tomcat, this is often configured in the init script as part of the JAVA_OPTS environmental variable. Though different services will do this in different ways. Without knowing more about what you are running, it’s hard to give a more specific answer.

Submit an Answer