Jira 5.2.4 javamelody configuration question


I've installed javamelody plugin for Jira in our server with Jira 5.2.4 and I'm very impressed of the detailled reports. But the SQL statistics are missing. According to the user guide, I have to modify the /var/atlassian/application-data/jira/dbconfig.xml and /opt/atlassian/jira/conf/server.xml files in order to view some SQL reports. Here is my dbconfig.xml file:

<?xml version="1.0" encoding="UTF-8"?>













<validation-query>select 1</validation-query>










Which according to the guide have to be modified to:

<?xml version="1.0" encoding="UTF-8"?>







If I understood the guide correctly.

Also the lines:

<Resource name="jdbc/JiraDS" auth="Container" type="javax.sql.DataSource"

username="[enter db username]"

password="[enter db password]"





validationQuery="select 1"


Has to be inserted between <Context ... > </Context> element in /opt/atlassian/jira/conf/server.xml

But there is no such element in the file. I have found the <Context ... > </Context> element in /opt/atlassian/jira/conf/context.xml

Can you please clarify for me what are the exact steps in order to be able to view some SQL statistics?

2 answers

1 accepted


I have just downloaded the latest JIRA (5.2.10). In the downloaded archive, the conf/server.xml file contains, inside the Engine / Host tags:

<Context path="" docBase="${catalina.home}/atlassian-jira" reloadable="false" useHttpOnly="true">

I suggest to look again in your conf/server.xml

Otherwise, the conf/context.xml file gives the default configuration for all context(s). So it may also work, if you add the "Resource" configuration in conf/context.xml (not tested).

Yes, you are right, somehow I missed that.

Can you provide more infor about the setup, I am still trying to configure it and jira does not recognize the jndi database .

Suggest an answer

Log in or Join to answer
Community showcase
Louis De Jaeger
Posted 8 hours ago in Off-topic

Friday fun: your best joke

Hi all Lets make this Friday fun really fun and post one (or more) of your best jokes! The joke can be about an Atlassian product, or just a really fun joke you want to share! I’m not the best j...

25 views 1 2
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot