When I try to use JMX to monitor an application like this:
java -Dcom.sun.management.jmxremote.port=9999
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
JMX_tester
it tells me:
Error: Password file read access must be restricted:
/usr/lib/jvm/java-7-oracle/jre/lib/management/jmxremote.password
Yet, when I use chmod
to restrict the read access, it tells me:
Error: can't read password file
Am I going insane or something? How can I fix this?
This is Ubuntu btw, with the latest oracle jdk
question from:
https://stackoverflow.com/questions/19220442/jmx-password-read-access-issue 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…