Multiple JVMs vs single app server

前端 未结 4 1038
灰色年华
灰色年华 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 04:02

    Another important reason to have multiple JVM instead of one is when facing numa groups. You cannot distribute your threads within one JVM appropriate over numa groups as you can with multiple jvm processes. At least i never found a way to do so.

    We have here machines with two cpu's, each having 18 cores, This gives two numa groups and we cannot enforce 34 Threads to be spread upon both cpu if only one JVM is used. This is obviously because it assumes that all threads of the same JVM process need to have fast access to the same memory which is not the case.

    Having 34 Processes the system assumes they have no need for shared memory and thus spread them over both cpus.

    If someone knows a better way of doing this i would be very glad to hear it.

提交回复
热议问题