• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Using JAMon

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Ranch Hand
Posts: 862
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic