Apache Tomcat是否为每个已部署的WAR启动新进程? [英] Does Apache Tomcat start a new process for each deployed WAR?

查看:175
本文介绍了Apache Tomcat是否为每个已部署的WAR启动新进程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在一个Tomcat实例上部署(并启动)两个WAR文件时,将有多少个Java进程?换句话说,将处理请求的上下文上下文的线程归入同一进程,还是将每个线程池归入空余的进程?

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?

推荐答案

默认情况下,Tomcat应用程序服务器将所有Web应用程序部署到单个JVM中。

The Tomcat application server deploys all webapps into a single JVM by default.

但是,您可以拥有多个可以运行自己的JVM并具有

However you can have multiple tomcat instances which can run their own JVM and have separate configurations and can be started/stopped independently.


Tomcat具有从
单个对象定义和运行多个实例的能力。二进制发行版的副本,并且此功能已很好地记录在Tomcat二进制
发行文件层次结构根目录RUNNING.txt中的
文件中。

Tomcat has had the ability to define and run multiple instances from a single copy of a binary distribution, and this functionality is well documented in the file RUNNING.txt at the root of the Tomcat binary distribution file hierarchy

RUNNING.TXT示例

运行多个tomcat实例示例

这篇关于Apache Tomcat是否为每个已部署的WAR启动新进程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆