Hello
Am trying to monitor BITBUCKET server remotely using jconsole where i have followed this link https://confluence.atlassian.com/bitbucketserver/enabling-jmx-counters-for-performance-monitoring-776640189.html
But didnt worked for me. It is unable to start the bitbucket,when i am uncomment the #JMX_REMOTE_AUTH=password.
If am comment this, able to start but unable to monitor using jconsole.
I think this is the problem "Ensure the owner of this password file is the secure user Bitbucket Server will run as. If the Bitbucket Server user cannot read the file, Bitbucket Server will fail to start".
File is in /var/atlassian/application-data/bitbucket/jmx.access
-rw-r--r--. 1 atlbitbucket atlbitbucket 19 Mar 8 17:02 jmx.access
Please help me out.
Thanks in advance.
Fayaz
I got solution myself where i have tried in
JMX_REMOTE_AUTH=password
RMI_SERVER_HOSTNAME=-Djava.rmi.server.hostname=<your_server_ip>
JMX_REMOTE_RMI_PORT=3333(not necessary because it's default)
JMX_PASSWORD_FILE=/var/atlassian/application-data/bitbucket/jmx.access
And also changed as below
#JMX_OPTS="-Dcom.sun.management.jmxremote.port=${JMX_REMOTE_PORT} ${JMX_REMOTE_RMI_PORT} ${RMI_SERVER_HOSTNAME} -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.password.file=${JMX_PASSWORD_FILE}"
JMX_OPTS="-Dcom.sun.management.jmxremote.port=${JMX_REMOTE_PORT} ${JMX_REMOTE_RMI_PORT} ${RMI_SERVER_HOSTNAME} -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"
export JMX_OPTS
And restart
From terminal:
$jconsole <your_server_ip>:3333
You will get popup and click insecure_connection and that's it, you will get all metrices.
cheers.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.