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


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 (

* 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
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

1,961 views 7 10
Read article

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