...
- The JVM id is only internally available and cannot be accessed using normal Java methods.
- Use Java Management to retrieve the start time of the JVM (only java 5)
For Java5:
Use Java Management to retrieve the start time of the JVM
Code Block |
---|
ManagementFactory.getRuntimeMXBean().getStartTime() |
Java 1.4 and higher
Make use of System.getProperties(). But this does not provide any unique identification of a JVM!
...