I am thinking of executing multiple instances of same java binary (a socket application) with different configuration files (As a command line parameter). Does the JVM correctly handles this situation? In other words If I haven't any common resources (Files that can be locked etc.) will this approach make any problems? If so what are things that I need to be careful.
If you start multiple instances of java from the command line you get multiple running JVMs (one per instance).
If there are no shared resources you should have no problems at all.
As Matthew pointed out earlier, as long as there are no shared resources we should see no problems.
Just to add a bit more, JVM is like a container that provides an execution environment for a java program and a JVM created each time we invoke java from the command line.
http://en.wikipedia.org/wiki/Java_Virtual_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