Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-51590

java.lang.ArithmeticException while collecting data:

    XMLWordPrintable

Details

    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

      Attachments

        Activity

          nrayapati Naresh Rayapati created issue -
          nrayapati Naresh Rayapati made changes -
          Field Original Value New Value
          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.

          {code}
          May 29, 2018 11:36:31 AM net.bull.javamelody.internal.common.JavaLogger warn
          WARNING: exception while collecting data: java.lang.ArithmeticException
          java.lang.ArithmeticException
          {code}
          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.

          {code}
          May 29, 2018 11:36:31 AM net.bull.javamelody.internal.common.JavaLogger warn
          WARNING: exception while collecting data: java.lang.ArithmeticException
          java.lang.ArithmeticException
          {code}

          *Environment*:
          Jenkins 2.124
          monitoring-1.72.0
          nrayapati Naresh Rayapati made changes -
          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.

          {code}
          May 29, 2018 11:36:31 AM net.bull.javamelody.internal.common.JavaLogger warn
          WARNING: exception while collecting data: java.lang.ArithmeticException
          java.lang.ArithmeticException
          {code}

          *Environment*:
          Jenkins 2.124
          monitoring-1.72.0
          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.

          {code}
          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)
          {code}

          *Environment*:
          Jenkins 2.124
          monitoring-1.72.0
          evernat evernat added a comment -

          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.

          evernat evernat added a comment - 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.
          evernat evernat made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]

          People

            evernat evernat
            nrayapati Naresh Rayapati
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: