This question may be very basic about Java JVM. If I've a Java standalone program and if, for example, 5 processes of this program are running at a particular time in the server, can we say that these 5 java processes are running in 5 JVMs?
By process, I mean the Linux process here. If I execute ps -ef |grep java
, I'll see 5 java processes showing up.
Yes, that's correct. There is one JVM per java
process.
You can run the jps
command (from the bin folder of JDK if it is not in your path) to find out what java processes (JVMs) are running on your machine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With