java - JMX password read access issue -


when try use jmx monitor application 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 restricted:        /usr/lib/jvm/java-7-oracle/jre/lib/management/jmxremote.password 

yet, when use chmod restrict read access, tells me:

error: can't read password file 

am going insane or something? how can fix this?

this ubuntu btw, latest oracle jdk

make sure user using run java process have access file (owner/read permissions).

try:

chmod 600 jmxremote.password 

plus suggest you'll make own password file , run

-dcom.sun.management.jmxremote.password.file=pwfilepath 

all explained here.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -