lemonzone2010 / javamelody

Automatically exported from code.google.com/p/javamelody
0 stars 0 forks source link

Charts have drawn incorrectly after several redeploys. #374

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
- Redeploy application several times without restart Tomcat.

What is the expected output? What do you see instead?
- Expecting charts have drawn correctly. 

What version of the product are you using? On what application server, JDK, 
operating system?
Tomcat 6.0.37 
OS: Linux 2.6.18-348.16.1.el5, i386/32 (8 cores)
Java: Java(TM) SE Runtime Environment, 1.7.0_21-b11
JVM: Java HotSpot(TM) Server VM, 23.21-b01, mixed mode

Debugging logs from UI:
Thu Jan 30 09:29:50 VLAT 2014     DEBUG     parameter defined: 
monitoring-path=/monitoring
Thu Jan 30 09:29:50 VLAT 2014     DEBUG     log listeners initialized
Thu Jan 30 09:29:50 VLAT 2014     DEBUG     datasources found in JNDI: []
Thu Jan 30 09:29:50 VLAT 2014     DEBUG     job global listener initialized
Thu Jan 30 09:29:50 VLAT 2014     DEBUG     counters initialized
Thu Jan 30 09:29:50 VLAT 2014     DEBUG     counters data read from files in 
/????
Thu Jan 30 09:29:50 VLAT 2014     DEBUG     collect task scheduled every 60s
Thu Jan 30 09:29:50 VLAT 2014     WARN     exception while collecting data
Thu Jan 30 09:29:50 VLAT 2014     DEBUG     first collect of data done
Thu Jan 30 09:29:50 VLAT 2014     DEBUG     JavaMelody filter init done in 74 ms
Thu Jan 30 09:30:50 VLAT 2014     WARN     exception while collecting data
Thu Jan 30 09:31:50 VLAT 2014     WARN     exception while collecting data
Thu Jan 30 09:31:51 VLAT 2014     WARN     exception while collecting data
Thu Jan 30 09:31:58 VLAT 2014     WARN     exception while collecting data

Excetion's stacktrace from logs:
java.lang.NullPointerException
        at net.bull.javamelody.RrdNioBackend.<init>(RrdNioBackend.java:66)
        at net.bull.javamelody.RrdNioBackendFactory.open(RrdNioBackendFactory.java:84)
        at org.jrobin.core.RrdDb.<init>(RrdDb.java:229)
        at org.jrobin.core.RrdDb.<init>(RrdDb.java:203)
        at org.jrobin.core.RrdDb.<init>(RrdDb.java:266)
        at org.jrobin.core.RrdDbPool.requestRrdDb(RrdDbPool.java:103)
        at org.jrobin.data.DataProcessor.getRrd(DataProcessor.java:807)
        at org.jrobin.data.DataProcessor.fetchRrdData(DataProcessor.java:686)
        at org.jrobin.data.DataProcessor.processData(DataProcessor.java:533)
        at org.jrobin.graph.RrdGraph.fetchData(RrdGraph.java:543)
        at org.jrobin.graph.RrdGraph.createGraph(RrdGraph.java:80)
        at org.jrobin.graph.RrdGraph.<init>(RrdGraph.java:59)
        at net.bull.javamelody.JRobin.graph(JRobin.java:199)
        at net.bull.javamelody.MonitoringController.doGraph(MonitoringController.java:350)
        at net.bull.javamelody.MonitoringController.doReport(MonitoringController.java:168)
        at net.bull.javamelody.MonitoringController.doActionIfNeededAndReport(MonitoringController.java:141)
        at net.bull.javamelody.MonitoringFilter.doMonitoring(MonitoringFilter.java:349)
        at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:172)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:404)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
        at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
        at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
        ...

Original issue reported on code.google.com by oastashe...@gmail.com on 29 Jan 2014 at 11:02

Attachments:

GoogleCodeExporter commented 9 years ago
<dependency>
    <groupId>net.bull.javamelody</groupId>
    <artifactId>javamelody-core</artifactId>
    <version>1.48.0</version>
</dependency>

Original comment by oastashe...@gmail.com on 29 Jan 2014 at 11:04

GoogleCodeExporter commented 9 years ago
I do not reproduce the issue (Tomcat 6, Windows, JDK 7).

Do you reproduce it always?
After how many redeploys?
Are the javamelody and jrobin jar files deployed in the webapp or in tomcat/lib 
directory?

Original comment by evernat@free.fr on 16 Feb 2014 at 4:55

GoogleCodeExporter commented 9 years ago
Sorry for delay.

javamelody.jar is inside war, but jrobin.jar in tomcat/lib.

Original comment by oastashe...@gmail.com on 26 Feb 2014 at 1:31

GoogleCodeExporter commented 9 years ago
> After how many redeploys?
From time to time issue is reproducing after different number of redeploys.

Original comment by oastashe...@gmail.com on 26 Feb 2014 at 1:33

GoogleCodeExporter commented 9 years ago
Couple minutes ago I have noticed further exception after second redeployment.

java.lang.IllegalStateException: Timer already cancelled.
        at java.util.Timer.sched(Timer.java:397)
        at java.util.Timer.schedule(Timer.java:248)
        at net.bull.javamelody.RrdNioBackend.<init>(RrdNioBackend.java:66)
        at net.bull.javamelody.RrdNioBackendFactory.open(RrdNioBackendFactory.java:84)
        at org.jrobin.core.RrdDb.<init>(RrdDb.java:229)
        at org.jrobin.core.RrdDb.<init>(RrdDb.java:203)
        at org.jrobin.core.RrdDb.<init>(RrdDb.java:266)
        at org.jrobin.core.RrdDbPool.requestRrdDb(RrdDbPool.java:103)
        at net.bull.javamelody.JRobin.addValue(JRobin.java:299)
        at net.bull.javamelody.Collector.collectJRobinValues(Collector.java:490)
        at net.bull.javamelody.Collector.collectJavaInformations(Collector.java:381)
        at net.bull.javamelody.Collector.collect(Collector.java:319)
        at net.bull.javamelody.Collector.collectWithoutErrors(Collector.java:306)
        at net.bull.javamelody.Collector.collectLocalContextWithoutErrors(Collector.java:296)
        at net.bull.javamelody.FilterContext$CollectTimerTask.run(FilterContext.java:57)
        at java.util.TimerThread.mainLoop(Timer.java:555)
        at java.util.TimerThread.run(Timer.java:505)

Original comment by oastashe...@gmail.com on 26 Feb 2014 at 6:19

GoogleCodeExporter commented 9 years ago
> javamelody.jar is inside war, but jrobin.jar in tomcat/lib

Why have you done that?
Put your brain back in place and the jrobin.jar inside the war

Original comment by evernat@free.fr on 1 Mar 2014 at 6:21