Java – execute multiple instances of a Java class file


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.

Best Solution

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.