When I deploy (and start) two WAR files on one Tomcat instance, how many Java processes will there be? In other words, will the threads handeling requests to the respective context roots fall under the same process, or will each thread pool fall under a sparate process?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
From what I know there is a thread pool created per Connector. Although, you can implement an Executor, which will allow to share a thread pool. The Executor element has to appear prior to Connector element in server.xml
The Tomcat application server deploys all webapps into a single JVM by default.
However you can have multiple tomcat instances which can run their own JVM and have separate configurations and can be started/stopped independently.
Source
RUNNING.TXT example
Run multiple tomcat instances example