Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problems displaying stats using jamon admin

 
Sven Anderson
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm unable to display monitors and stats in jamon admin for a small tester web application running on Tomcat 5.5. I'm using jamon-2.7 in my web app as well as for Tomcat (added to the common/lib folder). All I can see in jamonadmin.jsp are the default "com.fdsapi.xxx" that seems to be shipped with the war file.

I've added a one line statement to one of my methods



and when I run my webapp I do see the stats being displayed in the tomcat log. However, nothing appear in jamonadmin.jsp. I do use Log4j (v1.2.9) and for the time being I've set the log4j.rootLogger = TRACE in my log4j.property file. Any idea what I'm doing wrong?


ps. Initially I tried to use the filter in web.xml but when that didn't work I tried to use the example above.

Thanks
S
 
Sven Anderson
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

I fixed the problem. Noticed that I was using multiple jamon jars. Taking one out solved my problems.
 
steve souza
Ranch Hand
Posts: 862
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The most typical problem i seen in jamon configuration is multiple jamon jar files in the classpath. The jamon war that displays the data is different from your application, and so jamon jar must be loaded via a common class loader. This means you should have jamon jar at the server level versus in your applications web-inf/lib folder.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic