当我尝试使用 JMX 来监控这样的应用程序时:
java -Dcom.sun.management.jmxremote.port=9999 \
-Dcom.sun.management.jmxremote.authenticate=false \
-Dcom.sun.management.jmxremote.ssl=false \
JMX_tester
它告诉我:
Error: Password file read access must be restricted:
/usr/lib/jvm/java-7-oracle/jre/lib/management/jmxremote.password
然而,当我chmod
用来限制读取访问时,它告诉我:
Error: can't read password file
我是疯了还是怎么了?我怎样才能解决这个问题?
这是 Ubuntu 顺便说一句,带有最新的 oracle jdk