Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

JAVAMelody configurations - JNDI

I have configured Javamelody plugin in my JIRA 6.0.6 environment. According to documentation, it requires to change dbconfig.xml and server.xml files. It says it requires to use a jdbc datasource from jndi in order to monitor jdbc connections and SQL requests.

I'm using Oracle database and configuration line mentioned MYSQL.
url="jdbc:mysql://localhost/jiradb?useUnicode=true&characterEncoding=UTF8"

Is it possible to configure this plug-in for Oracle db as well? If so what is the configuration?

3 answers

1 accepted

0 votes
Answer accepted

Hi Heshan,

It should be possible with all JIRA supported databases. The jdbc URL for Oracle should be something like this:

jdbc:oracle:thin:@dbserver:1521:ORCL

Cheers

Hi heshan,

you need to do following steps

1. Add the javamelody jar file to <atlassian-jira>/WEB-INF/lib

2. Shutdown the jira

3. In dbconfig.xml replace the

<jdbc-datasource> </jdbc-datasource>

with

<jndi-datasource>

<jndi-name>java:comp/env/jdbc/JiraDS</jndi-name>

</jndi-datasource>

-----------------------------------------------------------------------------------------------

<jira-database-config>

<name>defaultDS</name>

<delegator-name>default</delegator-name>

<database-type>oracle10g</database-type>

<jndi-datasource>

<jndi-name>java:comp/env/jdbc/JiraDS</jndi-name>

</jndi-datasource>

</jira-database-config>

----------------------------------------------------------------------------------------------

4. Modify the below as per your jdbc-datasource and add

inside the <Context > </Context> tag of server.xml

----------------------------------------------------------------------------------------

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

url="jdbc:oracle:thin:@ xxx.xx.xxx.xx:port No:JIRA"

driver-class="oracle.jdbc.OracleDriver"

driverClassName="oracle.jdbc.OracleDriver"

username="dataBaseUserName"

password="dataBasePassword"

pool-min-size="20"

pool-max-size="150"

pool-max-wait="30000"

min-evictable-idle-time-millis="4000"

time-between-eviction-runs-millis="5000"

pool-max-idle="150"

pool-remove-abandoned="true"

pool-remove-abandoned-timeout="300"

validationQuery="select 1 from dual"

/>

-----------------------------------------------------------------------------------------

5. Now start the jira and do some search realted activity and monitor the jdbc connections and SQL requests.

This work for my jira.

can i do this with confluence as well? and if so what's the difference?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Happy New Year and Welcome New Marketplace Partner Program Partners!

Happy New Year! We hope you all had a safe and restful holiday season. 2020 was a unique year full of unforeseen events; however, as we enter the new year of 2021, we’re optimistic for the light at t...

641 views 7 23
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