Please tell me how to use Jamon API for meausing performance .
I have a jsp page as shown above with start and stop methods of Jamon API .
WIth the report shown , i didn't fing any usefulness of Jamon CUrrently , please tell me how to use it properly , or make any chnages to current JSP so that it could be more meaningful
Right now i am seeing that , only the number of Hits are useful Hits=2.0
please guide me .
Evaluating date now
Report isJAMon Label=myFirstMonitor, Units=ms.: (LastValue=0.0, Hits=2.0, Avg=0.
0, Total=0.0, Min=0.0, Max=0.0, Active=1.0, Avg Active=2.0, Max Active=2.0, Firs
t Access=Sat Dec 04 18:59:36 GMT+05:30 2010, Last Access=Sat Dec 04 19:01:18 GMT
You are making it more complicated than it is. You don't need to change any jsp files, and you don't need to change your code to monitor. Here is a link that explains the process. There are only a few simple steps. The only problem I have ever seen is that people put the jamon jar file in their own application instead of the server level. The symptom for this is that you have no data in the jamonadmin.jsp file.
Thanks Steve , with your help i could able to successfully start with Jamon ApI
I deployed a small JSP page which will just give Date onto Expression .
When i used JAmon for this , it gave me wrong information as such Number of Hits is 19 , where i accessed this page not more than 5 times , and i could see all this information such as response time is also not so useful , which can easily given by HTTP Basic Tool .
So how could i find JAMON useful ?? please guide me .
please see the screen shot attached of my application the page is index.jsp .
Joined: Jun 26, 2002
What exactly are you trying to do? What are you trying to track? If jamon says 19 hits have occurred then I suspect 19 hits have occurred. The only way that I can see that you would have done 5 page requests and 19 showed up is if you also put a jamon monitor in your jsp.
Joined: Jun 26, 2002
i could see all this information such as response time is also not so useful , which can easily given by HTTP Basic Tool
You should read the jamon web site as it talks about all this and more. It doesn't sound like you have read it at all. Even in your report jamon is tracking more than response time. It tracks bytes sent, http status codes, and whether a page is currently executing. It also tracks similar stats for SQL invocations, and EJB code without you changing your code. In addition you can add monitors to your own code and do custom monitoring. There are other features that allow you to keep the most recent page invocations in a buffer as well as their time and status code. Also it can track the slowest pages in say the past 24 hours, week etc. All these principals apply to any monitor you might create. All this and more is mentioned in the documenation. Having said all that if that isn't enough by all means use any tool you want.