View Full Version : Monitoring for Jetty-embedded ?
joachimhb
30-01-2009, 23:20
Hello,
I have an application that runs inside Jetty Embeded (Jetty is embedded withing the application). How do you set up monitoring for this sort of environment ?
kjkoster
02-02-2009, 19:54
Dear joachimhb,
If this is a full-featured Jetty, you should be able to feed it the WAR file of Java-monitor. The Jetty server will show up as a regular JVM, since there is (at this time) no special support for Jetty in Java-monitor. This means that you cannot see thead pools on the HTTP connector, for instance. Memory, gc and Hibernate should work, though.
I am curious, is this Jetty perhaps embedded in a Spring application?
Kees Jan
joachimhb
02-02-2009, 20:02
Thank you for your reply Kees,
It is not a full-features Jetty. It runs embedded inside the main application (it is built into a .zip file that contains startup scripts etc - with the appasembler plugin). This application is fully self-contained so it starts up Jetty as an embedded container to hosts its own files.
It is using Spring, Hibernate and JSF, so the architecture is fairly common.
kjkoster
02-02-2009, 20:19
Dear joachimhb,
I see. I do not have enough knowledge of Jetty to tell you if you can add a WAR file to such a configuration. Perhaps the Jetty forums can assist you in this matter?
I am thinking hard about making a Spring version of the Java-monitor probe. As more and more applications are built with Spring as the core, rather than a JEE server, I believe that there is a demand for such a probe.
Perhaps I should go all the way and make it into a maven dependency, so that you (and I) can easily do versioning of the probe.
As it stands, there is no such probe. If you'd like to help with Spring/Mavenizing the probe that would be a great favour. Even if it would be just testing beta versions of it.
Kees Jan
joachimhb
02-02-2009, 20:25
Hello,
No, there is no way to add a WAR file to that configuration as far as I know. Having it as a maven/spring probe would be very versatile and very useable. That might also open up other possibilities like instrumentation and such.
I might be able to help out somewhat, depending on the amount of time I get between family and work ;)
kjkoster
02-02-2009, 20:45
Dear joachimhb,
Cool. There are other Java-monitor users that would like to use Java-monitor from a Spring app, so I'm sure we can share the workload. :-)
Kees Jan
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.