szquadri / javamelody

Automatically exported from code.google.com/p/javamelody
0 stars 0 forks source link

JIRA: Use folder under JIRA_HOME to store statistics #279

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. upgrade JIRA
2. observe statistics are lost.

What is the expected output? What do you see instead?
Statistics are stored under JIRA_INSTALL/temp.
This means they will get lost when upgrading.
Unless copied back manually.

Please provide any additional information below.
Would it be possible to use a folder under JIRA_HOME?
This would ensure statistics survice upgrades automatically.

PS. Maybe the same is true for the other atlassian products Confluence, Bamboo, 
...

Original issue reported on code.google.com by valentijnscholten on 12 Jan 2013 at 8:59

GoogleCodeExporter commented 9 years ago
For Confluence and Jira I do this by setting the Java system property 
"javamelody.storage-directory"  (I'm using JavaMelody 1.42.1)

e.g. in Tomcats setenv.sh:

export JAVA_OPTS="$JAVA_OPTS -Djavamelody.storage-directory=/my/path"

Original comment by matth...@opencloud.com on 25 Jan 2013 at 5:14

GoogleCodeExporter commented 9 years ago
So this is a typical RTFM case, sorry about this.

http://code.google.com/p/javamelody/wiki/UserGuide#6._Optional_parameters

Can be closed.

Original comment by valentijnscholten on 25 Jan 2013 at 10:12

GoogleCodeExporter commented 9 years ago
To help people using the plugin for JIRA/Confluence/Bamboo, I have added a note 
about the storage directory in the Atlassian chapter, just before the mail 
reports:
https://code.google.com/p/javamelody/wiki/UserGuide#Atlassian_JIRA,_Confluence_a
nd_Bamboo_Plugin

And system properties can be configured for tomcat in bin/setenv.sh, or in 
conf/catalina.properties

Original comment by evernat@free.fr on 26 Jan 2013 at 12:59