tomcat隔离webapps [英] tomcat isolate webapps

查看:68
本文介绍了tomcat隔离webapps的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用同一jvm在同一tomcat上运行的多个webapp.有时,一个内存泄漏的Web应用程序将导致整个jvm崩溃并影响其他Web应用程序.任何建议如何隔离它,而无需使用多个jvm和tomcat

multiple webapp running on same tomcat using same jvm. sometime, one webapp that have memory leak will cause entire jvm to crash and affect other webapps. any recommendation how to isolated that without need to use multiple jvm and tomcat

推荐答案

在同一个JVM中,所有事物都共享相同的内存.没有系统分配单独的池或配额.

Within the same JVM everything shares the the same memory. There is no system to allocate separate pools or quota.

如果您的应用程序在这方面的表现确实很差,那么您唯一可以做的就是在单独的JVM(独立的Tomcat)中独立运行它.

If one of your applications behaves really badly in this regard, the only thing you can do is run it isolated in a separate JVM (separate Tomcat).

这篇关于tomcat隔离webapps的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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