It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Atlassian Performance Testing Framework: How To Configure JMX monitoring for Confluence Edited

Joe Jadamec Jan 17, 2018

need more info "Setting up Confluence" step "4. Enable JMX monitoring for your Confluence instance." That section of the documentation looks incomplete on

https://bitbucket.org/atlassian/elastic-experiment-executor/overview

 

However, I was able to start Confluence with jmxremote and connect to Confluence remotely with jconsole by using my own settings like this in setenv.sh

CATALINA_OPTS="-Dcom.sun.management.jmxremote.port=3333 ${CATALINA_OPTS}"
CATALINA_OPTS="-Dcom.sun.management.jmxremote.rmi.port=3333 ${CATALINA_OPTS}"
CATALINA_OPTS="-Dcom.sun.management.jmxremote.ssl=false ${CATALINA_OPTS}"
CATALINA_OPTS="-Dcom.sun.management.jmxremote.authenticate=false ${CATALINA_OPTS}"
CATALINA_OPTS="-Dcom.sun.management.jmxremote ${CATALINA_OPTS}"

I also connected jconsole using com.sun.management.jmxremote.authenticate=true

and supplied a username and password manually when connecting from jconsole.

1. But how does the test Framework use JMX monitoring for Confluence tests? Is it collecting data, changing attributes, running methods...etc? 

2. what ports are used by the Test Framework to connect to JMX on my Confluence nodes, what type of authentication is used, and where in the Test Framework config files are the ports and login info entered for jmxremote connections to Confluence?

3 answers

0 votes
Shannon Spaniol Atlassian Team Jan 25, 2018

Joe,

I'm not personally familiar with this process, but I found an article that might help you?

I will pass this on to a few of my colleagues and see if they are able to provide you any details about this.

Regards,

Shannon

Joe Jadamec Jan 25, 2018

Thanks Shannon, as I stated above, I already have JMX Remote monitoring working, and I have already read the article you linked.

But I am asking how the "Atlassian Performance Testing Framework" is configured to connect via JMX for Confluence? 

The documentation at this link only describes how to connect the Framework to JMX for BitBucket.  https://bitbucket.org/atlassian/elastic-experiment-executor/overview

Shannon Spaniol Atlassian Team Jan 31, 2018

Hi Joe,

I'm still working on finding these details for you, but I was also able to find this documentation that might give you more information, but perhaps not the exact specifics you're looking for:

I'm sorry that I'm not familiar with Confluence Data Center version. I'm reaching out to the devs on the Bitbucket repository as well to see if they can come here and answer your questions.

Regards,

Shannon

0 votes
Nguyen Tran Community Leader Jan 30, 2018

Hi Joe,

I'm also trying to have my JMX Remote monitor working. However, I always get a connection failed when trying to connect. Can I leave my username and password blank if I have CATALINA_OPTS="-Dcom.sun.management.jmxremote.authenticate=false ${CATALINA_OPTS}" ?

Joe Jadamec Jan 30, 2018

and add this line, but no user/pass settings should only be used on internal test servers.

CATALINA_OPTS="-Dcom.sun.management.jmxremote.ssl=false ${CATALINA_OPTS}"

Nguyen Tran Community Leader Jan 30, 2018

I have all the parameters that you mentioned in the original post. And yea this is for our internal test server.

Joe Jadamec Jan 31, 2018

yes, it works for me with no user/password, I connected to JVM on a remote Linux server just using <hostname>:<port> in jconsole.  check if jconsole connects locally, and if it does, then check if the port is available on your server, and not blocked by a firewall to your remote server.

Nguyen Tran Community Leader Jan 31, 2018
CATALINA_OPTS="${GC_JVM_PARAMETERS} ${CATALINA_OPTS}"
CATALINA_OPTS="-Dcom.sun.management.jmxremote.port=8099 ${CATALINA_OPTS}"
CATALINA_OPTS="-Dcom.sun.management.jmxremote.rmi.port=8099 ${CATALINA_OPTS}"
CATALINA_OPTS="-Dcom.sun.management.jmxremote.ssl=false ${CATALINA_OPTS}"
CATALINA_OPTS="-Dcom.sun.management.jmxremote.authenticate=false ${CATALINA_OPTS}"
CATALINA_OPTS="-Dcom.sun.management.jmxremote ${CATALINA_OPTS}"
CATALINA_OPTS="-Dcom.sun.management.jmxremote.local.only=false ${CATALINA_OPTS}"

Here's my setenv.sh file. Wonder if I'm doing anything wrong here. The port is available on my server and is not blocked by a firewall. 

0 votes
Joe Jadamec Feb 06, 2018

The port, username, and password are set in the collectd.conf file.  On Linux, the file is  /etc/collectd.conf

see Connection blocks section on this page: Plugin:GenericJMX Configuration Connection blocks

Example:

<Connection>
Host "localhost"
ServiceURL "service:jmx:rmi:///jndi/rmi://localhost:3333/jmxrmi"

User "monitorRole"

Password  "your password here"

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

956 views 0 19
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you