Multiple JVMs vs single app server

前端 未结 4 1028
灰色年华
灰色年华 2021-02-04 03:11

I\'m dealing with a system that runs a Java application per customer in its own JVM. We\'ve got about a half dozen dedicated servers that are running close to 100 JVMs total now

4条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-04 03:47

    Checkout 'multi-tenant' JVM's.

    IBM's JRE has it already: http://www.ibm.com/developerworks/library/j-multitenant-java/

    Waratek has implemented it on top of the Oracle JRE, and they created ElastiCat, a Tomcat fork that isolates different applications in the same container: http://www.elasticat.com/faq/

    Multi-tenancy is rumoured to appear in the official Oracle Java 9 JVM, too.

    =======================================================

    Update: Java 9 is out, but no word from Oracle about multi-tenancy. It seems they prefer having multiple JVM's these days, even multiple Containers (e.g. docker).

提交回复
热议问题