Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Instances of JVM

Tags:

java

jvm

Does invoking java via two different command line involves two different JVMs or two separate instances of same JVM.

like image 257
JavaUser Avatar asked Sep 06 '10 14:09

JavaUser


1 Answers

What is the difference in your question? I would say: two different JVM instances. :)

Each run of the the java command does invoke a new JVM instance. The running java application could run new Java Threads (like a Tomcat does with web applications).

like image 169
splash Avatar answered Oct 17 '22 21:10

splash