Increasing the Tomcat heap size

I'm trying to increase the tomcat heap size (so that I can optimize GeoServer performance), which is what I did:

  • Change the JAVA_OPTS values ​​in the default tomcat file:

JAVA_OPTS = "- Djava.awt.headless = true -Xmx3072m -XX: MaxPermSize = 512m"

  • Restart tomcat

When I checked the JVM values ​​it displays:

Free memory: 440.33 MB Total memory: 495.06 MB Maximum memory: 2969.62 MB

I'm not sure if this is good or not.

-2


source to share


1 answer


-Xmx will set the maximum heap size... The JVM will allocate more memory as needed up to this limit. If for some reason you want to allocate more heap memory when starting the JVM, use the -Xms option in addition to the -Xmx option .

See Oracle docs for details .



Also, these options are RAM related, so HD space is irrelevant.

+1


source







All Articles