Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Jun 21, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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

  • Added labels: Priority-Medium, Type-Enhancement
  • Removed labels: Priority-High, Type-Defect

@GoogleCodeExporter
Copy link
Author

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

  • Changed title: JIRA/Confluence/Bamboo: Use app.home and not temp directory for data storage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants