I'm using JAMon, and I want to use the jamon.war
to monitor my app. However, my app and the jamon.war
app have different classloaders, and therefore they don't see each other's static variables (where the data is stored, as far as I understand). I am getting the proper data when I call MonitorFactory.getReport()
in my app.
How to get this working?
The problem was that I had jamon-xx.jar in my WEB-INF/lib
. When I remove it (and have it only in tomcat's lib dir), it is loaded by the tomcat classloader (which I guess is a parent of all application classloaders), and so the two applications can share the static fields.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With