I need to get the JVM Arguments
of a specific Java Program
running in the background, how do you exactly do this?
I found out, that the classes ManagementFactory
and RuntimeMXBean
would give me the needed result. Now I need to do this with a specific program.
Another problem is that I don't get the XMX
and XMS
properties when running the following code.
RuntimeMXBean runtimeMXBean = ManagementFactory.getRuntimeMXBean();
List<String> jvmArgs = runtimeMXBean.getInputArguments();
I only get the javaagent
and Dfile
properties, but I also need the XMX
and XMS
like I said.