单个 Tomcat 中的多个应用程序与 Tomcat 的多个实例中的比较

发布于 2024-10-08 11:38:28 字数 163 浏览 0 评论 0原文

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

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

有人看到这有什么缺点吗?

我猜测我的每个实例对内存的需求将会下降 - 因此我的总体内存消耗将基本上保持不变。

我错过了什么吗?

Currently, we run multiple applications in a single 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.

Am I missing something ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

少女情怀诗 2024-10-15 11:38:28

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

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

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.

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文