JMX monitoring for Bitbucket 4.13 not working - connection refused

I am trying to do performance monitoring of bitbucket staging server and followed instructions on https://confluence.atlassian.com/bitbucketserver0413/enabling-jmx-counters-for-performance-monitoring-873875206.html

 

Despite following instructions from above, JConsole login window keeps complaining "Connection failed: Connection refused". Not sure why. I tried with FQDN, IP address but in vain.

Please advise

1 answer

There are a few things to do to make it work:

* start bitbucket with -Djava.rmi.server.hostname=`hostname -f` (Linux)

* if you use ssl, you may have to import your CA's root certificates into the Java trusstore, if you use a corporate CA

* if you use proxy settings, make sure you excluded local traffic, or your proxy can handle JMX

* you may have to configure JMX role to user mappings on the server (jmxpassword.properties)

* use the correct user name when autenticating with JMX

Also make sure that hostname -f actually prints the FQDN of the server.

Thank you Mike. I tried all what you suggested but in vain.

The host running bitbucket is not behind a firewall.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

22,317 views 26 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you