I have a web application for monitoring use, and I have some other JVM nodes. There are some settings passed to the JVM node, like java -Dmyprop=someValue. In my web application, I need to retrieve these properties. Is this possible to do it? If yes, how should I do it?
See JConsole with Java 5 or later. The APIs it uses are available for you to use, too. Here's how I start my JVM to enable a remote console:
Here are the JVM topics JConsole displays:
VM Information Java Virtual Machine: Vendor: Uptime: Name: VM arguments: Class path: Library path: Boot class path: Compiler JIT compiler: Total compile time: Operating System Operating System: Architecture: Number of processors: Process CPU time: Total physical memory: Free physical memory: Committed virtual memory: Total swap space: Free swap space: [ March 21, 2006: Message edited by: Stan James ]
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi