简体   繁体   中英

how jvm memory allocated when there are more than 1 tomcat running

In the catalina.sh file we specify the maximum Xmx size given to the JVM, i am bit confused on the JVM part, do we have seperate JVM for a different tomcat running?? or how would it share one JVM ??

If you have more than one Java program running (such as two Tomcat instances), then they each get their own JVM, with potentially different configuration (or even version).

But if you deploy two webapps into the same Tomcat server, they share a single JVM.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM