How to configure Java Melody in JIRA 5 or 6 so it does monitor database access?

I am trying to configure Java Melody so it will monitor JDBC connections in JIRA but so far I wasn't able to find the right configuration to make it work with my postgresql connection.

I tried to follow the guide from it still doesn't work. Even worse I do had to add an additonal DB connection inside server.xml for the igrid plugin, but that's in a different section, not inside context.

Can someone copy/paste a configuration that works with Melody? server.xml and dbcofig.xml (obviously you may want to remove the passwords or hostnames). Thank you.

1 answer

1 accepted

In Server.xml


<Engine name="Catalina" defaultHost="localhost">

<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">

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

<Resource name="UserTransaction" auth="Container" type="javax.transaction.UserTransaction"

factory="org.objectweb.jotm.UserTransactionFactory" jotm.timeout="60"/>

<Manager pathname=""/>

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







validationQuery="select version()"/>




In dbconfig.xml


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








and it worked fine for me.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Posted 12 hours ago in Jira

We want to know what Jira Service Desk apps you're using!

Hi Community! My name is Amir and I’m on the Jira Service Desk product marketing team at Atlassian. Our team would love to understand how you’re leveraging our ecosystem for Jira Service Desk. Wha...

35 views 0 5
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