单个Tomcat中的多个应用程序与tomcat的多个实例 [英] Multiple applications in single Tomcat vs multiple instances of tomcat

查看:133
本文介绍了单个Tomcat中的多个应用程序与tomcat的多个实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当前,我们在单个Tomcat中运行多个应用程序

Currently, we run multiple applications in a single Tomcat

我宁愿将每个应用程序作为具有嵌入式Tomcat的单个应用程序来运行

I would rather run each application as a single application with embedded Tomcat

有人看到这个方面有什么缺点吗?

Does anyone see any downside to this ?

我猜我每个实例对内存的需求将会减少-因此我的总体内存消耗将基本保持不变.

I am guessing my per instance need for Memory will go down- so my over-all memory consumption will basically remain the same.

我想念什么吗?

推荐答案

我认为您总体上将需要更多的内存,因为每个应用程序都需要有自己的呼吸空间.随着配置文件数量的增加,您可能还需要进行更多维护.

I think you will need more memory overall as each application will need to have its breathing space. You will also probably have to do more maintenance as the amount of config files will go up.

以此为代价,您将获得更多的独立性-例如如果其中一个应用程序会占用所有CPU资源,甚至设法关闭整个JVM,那么其他Tomcat仍将启动并运行.

At this cost you will get more independence - e.g. if one of the apps will suck all CPU resources or even manage to bring down entire JVM, your other Tomcats will still be up and running.

这篇关于单个Tomcat中的多个应用程序与tomcat的多个实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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