Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to Monitor Bitbucket remotely using JConsole

fayaz jira
Contributor
March 11, 2019

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

1 answer

1 accepted

1 vote
Answer accepted
fayaz jira
Contributor
March 14, 2019

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events