单个 Tomcat 中的多个应用程序与 Tomcat 的多个实例中的比较
目前,我们在单个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为总体上您将需要更多内存,因为每个应用程序都需要有自己的喘息空间。随着配置文件数量的增加,您可能还需要进行更多的维护。
以此代价,您将获得更多的独立性 - 例如,如果其中一个应用程序会占用所有 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.