Is there any way where I can find out which Java options are being used by a Java application inside JVM (e.g. the ones passed through the command line)?
I want to find it on the fly when the application is running, but from outside outside the application.
You can use JMX:
To get the JMX connection, you might find my answer to ” JMX client accessible locally only ” helpful.