aspose file tools*
The moose likes Performance and the fly likes Using JAMon Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "Using JAMon" Watch "Using JAMon" New topic
Author

Using JAMon

Hann-Yu Chang
Greenhorn

Joined: Feb 17, 2004
Posts: 9
I've been searching around online, have read through the JAMon User's Guide, have looked at the provided example, but can not get my administrative page to return results. (The JAMonAdmin.jsp page renders, but the results table is blank.)
According to the documentation, all that is required in the code is a MontitorFactory and calls to start and stop it:
import com.jamonapi.*;
...
Monitor mon=MonitorFactory.start("myFirstMonitor");
...Code Being Timed...
mon.stop();
I have done this yet my admin page does not display any results. I'm I missing something? Is this a configuration issue, user error, something else? Is it necessary to call mon.getReport()? When and where?
Thanks!
steve souza
Ranch Hand

Joined: Jun 26, 2002
Posts: 861
If you are successfully making calls to jamon and have JAMonAdmin.jsp in youre war then you should be able to see the stats. I have seen classpath problems if your calling context jamon.jar is different than the jamon.jar being referenced by JAmonAdmin.jsp. If you put jamon.jar in web-inf\lib this shouldn't be a problem. If you put a monitor in JAMonAdmin.jsp you will definitely see data. i..e at the top of JAMonAdmin.jsp put


http://www.jamonapi.com/ - a fast, free open source performance tuning api.
JavaRanch Performance FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using JAMon