如何将jconsole输出保存到日志文件中?
我尝试添加logging.properties,但它被忽略:
jconsole.exe -Jjava.util.logging.config.file=logging.properties -debug
或
jconsole.exe -Djava.util.logging.config.file=logging.properties -debug
目前,我正在获取jconsole输出窗口,最小日志为:
java.lang.SecurityException: Expecting a javax.rmi.ssl.SslRMIClientSocketFactory RMI client socket factory in stub!
at javax.management.remote.rmi.RMIConnector.checkStub(RMIConnector.java:1875)
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:295)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:270)
at sun.tools.jconsole.ProxyClient.tryConnect(ProxyClient.java:357)
at sun.tools.jconsole.ProxyClient.connect(ProxyClient.java:313)
at sun.tools.jconsole.VMPanel$2.run(VMPanel.java:294)
sorting table against column=0 ascending=true
sorting table against column=0 ascending=true
sorting table against column=0 ascending=true
我也有压制的选择,但我不想这样
使用“--console suppress”抑制控制台输出。