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).