Java – Tomcat and VM

It's really hard for me to understand where Tomcat actually runs It is executed in the JVM, which executes servlets Or it has its own VM when executing servlets or JSPS

Thank you in advance

Solution

Tomcat will run in the JVM and the servlet will execute within the Tomcat process (in the same JVM)

Run Catalina Sh (or. Bat) will start the new JVM for Tomcat to run If you need a web server as part of a larger application, you can load / run Tomcat. Net programmatically in an existing JVM

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>