JVM is a standard process like any other. Thus, between them there is no implicit connection or sharing by the state. Each will have its own pile, threads, etc. If you kill her, it will not affect the other.
What will become common is the code pages of the JVM itself. The kernel is smart enough to identify the same binary file (any binary file - not just the JVM) that works twice, and image reuse. This applies only to the actual binary code, and not to its state. See here for more details. Linux
The JVM is not a daemon process, but it can be started at system startup as a Windows service or as a Unix / Linux process (via the /etc/init.d scripts). So you can (say) run a web service written in Java when the machine boots up.
Brian agnew
source share