Details
-
Bug
-
Status: Resolved (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
Description
We are encountering the following exception during the metrics collecting, this isn't blocking major functionality, is something being filled in our logs so much. Hope this is the plugin which is causing this exception. Appreciate any help correct this behavior. Thanks in advance.
May 29, 2018 1:55:32 PM net.bull.javamelody.internal.common.JavaLogger warn
WARNING: exception while collecting data: java.lang.ArithmeticException: / by zero
java.lang.ArithmeticException: / by zero
at org.jrobin.core.Archive.archive(Archive.java:129)
at org.jrobin.core.RrdDb.archive(RrdDb.java:720)
at org.jrobin.core.Datasource.process(Datasource.java:201)
at org.jrobin.core.RrdDb.store(RrdDb.java:593)
at org.jrobin.core.Sample.update(Sample.java:228)
at net.bull.javamelody.internal.model.JRobin.addValue(JRobin.java:374)
at net.bull.javamelody.internal.model.Collector.collectCounterRequestData(Collector.java:820)
at net.bull.javamelody.internal.model.Collector.collectCounterRequestsAndErrorsData(Collector.java:750)
at net.bull.javamelody.internal.model.Collector.collectCounterData(Collector.java:738)
at net.bull.javamelody.internal.model.Collector.collect(Collector.java:356)
at net.bull.javamelody.internal.model.Collector.collectWithoutErrors(Collector.java:324)
at net.bull.javamelody.internal.model.Collector.collectLocalContextWithoutErrors(Collector.java:313)
at net.bull.javamelody.FilterContext$CollectTimerTask.run(FilterContext.java:80)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
Environment:
Jenkins 2.124
monitoring-1.72.0
This issue is rare and may not be reproduced in normal usage. But I think that one of the http....rrd or builds....rrd files for the graphs of the http requests or builds was corrupted at some time in the past.
Anyway, it should be fixed by this commit:
https://github.com/javamelody/javamelody/commit/e93fd40f3365eb2562e21fb5e332b796eff66ed2
And such a corrupted file will be automatically reset. This will be in the 1.73 release.