【发布时间】:2013-10-07 08:48:15
【问题描述】:
当我尝试使用 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
【问题讨论】:
-
在 Windows 上对我来说同样的问题。