通过此代码,你可以获取JVM参数:
import java.lang.management.ManagementFactory;import java.lang.management.RuntimeMXBean;...RuntimeMXBean runtimeMxBean = ManagementFactory.getRuntimeMXBean();List<String> arguments = runtimeMxBean.getInputArguments();
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)