junedo / javamelody

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

JIRA/Confluence/Bamboo: Use app.home and not temp directory for data storage #395

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
There are two very critical changes to be made to javamelody, both of them 
being required for not loosing precious historical monitoring data.

If someone is change the hostname of the machine or moving a JVM service 
deployment from one machine to another, Java Melody will loose the historical 
data, just because it will try to use another temp directory.

Another reason for loosing the data is if the temp directory is cleaned.

Cleaning a temp directory is someone normal to expect on a restart and the 
decision to write the RRD database inside a temp directory was a really 
unfortunate one. 

Please fix this to prevent disasters.

I use rate this as a bug, as it is clearly a design bug and fixing is does only 
solve some problems, it does not add a feature, or maybe only if you count 
product-quality as feature ;)

Original issue reported on code.google.com by sorin.sb...@gmail.com on 26 Mar 2014 at 12:27

GoogleCodeExporter commented 9 years ago
You probably speak about JIRA in particular.

Just for the record, this is not an unfortunate decision. This is a decision to 
make it work, given my free time available.

I agree with you that the files would be better located into the directory 
/path/to/jira.home/monitoring/ (and this is the same for Confluence and 
Bamboo). And this could be done automatically, by default.

But, you can do that yourself. If you want to use another storage directory, 
add a "javamelody.storage-directory" system property (in <installation 
directory>/bin/setenv.sh or in <installation 
directory>/conf/catalina.properties). For example: 
        ... -Djavamelody.storage-directory=/my/path

In fact, this is written in the documentation of the JIRA/Confluence/Bamboo 
plugin:
https://code.google.com/p/javamelody/wiki/AtlassianPlugin (and in the 
javamelody user guide otherwise).

This will resolve both changes that you speak about.

Original comment by evernat@free.fr on 26 Mar 2014 at 8:29

GoogleCodeExporter commented 9 years ago
In the JIRA/Confluence/Bamboo plugin, I will relocate files into the directory 
/path/to/jira.home/monitoring/ (same for Confluence and Bamboo), *as time 
allows*.

Original comment by evernat@free.fr on 26 Mar 2014 at 8:31

GoogleCodeExporter commented 9 years ago

Original comment by evernat@free.fr on 26 Mar 2014 at 8:59

GoogleCodeExporter commented 9 years ago

Original comment by evernat@free.fr on 26 Mar 2014 at 9:01