Is there a way to get all the setting from which a java program (JVM) is running from with in the program. Yes, I want them from with in the program so I can log them as part of application log.
Here is some useful info - but either they capture this inform from outside the program or only lists specific info from within the program.
Getting the parameters of a running JVM - but this is from outside the program not from within - i want these settings to be part of application log for latter reference even after the application is terminated.
Getting GC settings for running JVM - this is specific to GC details. I want all parameters/setting of JVM from within program.
how to get the min and max heap size settings of a JVM from within a Java program - this is also specific to Memory.
How to read JVM parameters/arguments from within a running Java application - this for arguments explicitly passed to the JVM. It's does not capture the other settings not passed to JVM explicitly.
I am fine to use libraries outside of JDK too - like spring etc if they can provide me this info.