It's not a secret anymore!
The moose likes Design and the fly likes Monitoring Pages Web JSP/JSF with JMX Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Design
Bookmark "Monitoring Pages Web JSP/JSF with JMX" Watch "Monitoring Pages Web JSP/JSF with JMX" New topic

Monitoring Pages Web JSP/JSF with JMX

simone santos

Joined: May 20, 2013
Posts: 4
Good night
Please, someone know how monitoring pages web JSF/JSP using JMX
I need monitoring memory, swap, load Average information about aplication with JMX
I created an interface to expose the methods already implemented this interface and have created an Agent with the MBeanServer already registered MBeans, and I'm using an adapter as client HtmlAdaptorServer

But I'm don't know how to use it, how monitor the page JSP

any example or suggestion please

Thank you

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
An HtmlAdaptorServer uses HTTP to expose the information; when you instantiated it you probably needed to specify on which port that happens. Try accessing the server on that port.

If this was my server, and there was a way I could access it through any port I chose to, I would use JConsole or VisualVM to access the server directly via JMX.

And keep in mind that you're not monitoring JSP or JSF or any web pages, you're monitoring a JVM via JMX.
I agree. Here's the link:
subject: Monitoring Pages Web JSP/JSF with JMX
jQuery in Action, 3rd edition