Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Build Status


A WAR application, deployable to any servlet container, or embeddable to your EAR. You may receive RSS/e-mail/Jabber notifications of potential problems. If you cannot use traditional tools such as JConsole or VisualVM then this is for you.

WebMon requires Java5 or higher.

WebMon can also be embedded in JavaSE applications as well, without the WAR overhead. Add the webmon-analyzer module to your app, and obtain the monitorings as text files by using telnet, nc or your browser.

Please see the old page at WebMon for further details and screenshots.

WebMon consists of two modules:

  • webmon-analyzer - analyzes the JVM it runs in, via the JMX interface. It is able to run standalone in any JVM-based deployment including JavaSE, by providing a TCP/IP server which produces textual dumps.
  • webmon-web - a full-blown WAR application which provides nice charts and graphs, allows you to browse class loader hierarchy and files, etc.

In production I recommend to use webmon-analyzer: it is easier to embed to your app, has very little overhead, and is inherently secure since it listens for incoming connections on localhost only.

How to run

Quickstart / Trying Out

To quickly evaluate WebMon, download webmon-war.war from the Releases page. To run the WAR file, you can for example use the Jetty Runner.

The WAR is configured to be started in the context root of /webmon both in JBoss and in Glassfish.

You can also run the webmon-analyzer as standalone, by running

java -cp webmon-analyzer-0.16.jar sk.baka.webvm.analyzer.Main


telnet localhost 5455

A dump is made every time when you read that TCP/IP port. The analyzer then waits for additional commands; just type 'help' to get help. You can list resources in which jars they are present, and download the resources.

How To Embed To Your App

To embed into your JavaEE application, just package the WebMon WAR file into your EAR file.

You can also embed WebMon to your JavaSE application, without the web frontend, by using the webmon-analyzer jar file. webmon-analyzer will open a TCP/IP socket and will provide monitoring information as a simple plaintext file - you can either use telnet or any browser to download the text report.

To embed WebMon to your app, just add the following Maven dependency to your pom.xml:


Then, use the following code to start the WebMon sampler and open the TCP/IP port:

final SamplerConfig cfg = new SamplerConfig(20, 1000, 0);
final IHistorySampler hs = new HistorySampler(cfg, IHistorySampler.HISTORY_PROBLEMS, null, null);
final TCPIPServer webmonServer = new TCPIPServer(5455, 5456, hs);

To stop the embedded server:


You can view the file in your browser at http://localhost:5456 (use ssh port forwarding to access remote machines), or by running

nc localhost 5455

or by running

telnet localhost 5455

Example of VM Dump plaintext file:

Maven 2 users

You can use the following Maven2 repository:

Add the following to your pom.xml (for TCP/IP-only analyzer):


Add the following for the web analyzer (war):