muliple JVMs

hi, supporter!

i have two different set of web apps. (one is for just web user, and another is for admin. user)

i wonder whether i run these two web apps same jvms or different jvms?

is it any peformance differences?

it has 2 CPUs.. in this case, i think jvm processor itself uses cpu and memory.. so.. if i divide 2 web apps in different 2 JVMs.. it will use more CPU and memory..

how do you think about it?

and when and why do you usually different JVMs in one machine? ( for not clustering, but running different web apps)

one more question,

if i must share the session at 2 web apps, i'd better run at 1 JVMs?

thanks in advance..

[711 byte] By [jumeelee] at [2007-9-26 6:25:41]
# 1

Generally it is not possible to run two applications in a single JVM. Solutions to allow for that exist, but it isn't something like just setting a command line switch.

And there is always the chance of interaction. If one java application takes the process down, then both applications go down.

Those are some of the reasons one generally runs a seperate process for each application. And it follows the same guidelines why the process space itself is seperate for each process (regardless of the language it started in.)

jschell at 2007-7-1 15:29:05 > top of Java-index,Java HotSpot Virtual Machine,Specifications...