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

Charts of Statistics http/sql etc, can not be viewed after restarting the application #617

Closed
goldyliang opened this issue Mar 13, 2017 · 1 comment

Comments

@goldyliang
Copy link
Contributor

The charts under each http/sql request entry can be viewed normally. However if the application is restarted, the charts can not be seen anymore, unless there are several requests coming and 're-activate' the charts.

After some reading of the code, I have found the source of the issue and changed the code to make it work.

The problem is in Collector.getJRobin. After restarting, the http/sql graphs are not added into any of the JRobin collections so getJRobin return null even the RRD file really exists. My quick fix is to create a temporary JRobin object and return that if no JRobin object is found in the collections.

I will send a PR soon for this change.

@evernat
Copy link
Member

evernat commented Mar 17, 2017

Fixed and pushed to master (e5df3b1). Thanks

goldyliang pushed a commit to goldyliang/javamelody that referenced this issue Mar 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants