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

JavaMelody statistics is cleared after tomcat restart #7

Open
alexbudarov opened this issue Aug 15, 2019 · 0 comments
Open

JavaMelody statistics is cleared after tomcat restart #7

alexbudarov opened this issue Aug 15, 2019 · 0 comments
Assignees

Comments

@alexbudarov
Copy link
Member

How to reproduce:

  • Deploy application with JavaMelody to a linux tomcat service. E.g. Ubuntu 18.04, "tomcat8" package.
  • Run for a while
  • Restart tomcat
  • Open /core-jm/ page again.

You will see that all graphs have been reset:
image

The reason is because JavaMelody by default stores its data in a temp directory. E.g. tomcat/temp/javamelody in tomcat-fast-deployment.
And linux tomcat service cleans temp directory on every server restart - which is reasonable thing. So javamelody stats are cleared during every tomcat service restart.

Suggestion: place javamelody stats to other place, e.g. work directory.

@dtsaryov dtsaryov self-assigned this Aug 17, 2019
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