File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Performance
Bookmark "Using JAMon" Watch "Using JAMon" New topic

Using JAMon

Hann-Yu Chang

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...
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?
steve souza
Ranch Hand

Joined: Jun 26, 2002
Posts: 862
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 - a fast, free open source performance tuning api.
JavaRanch Performance FAQ
I agree. Here's the link:
subject: Using JAMon
It's not a secret anymore!