【Java应用程序监视器之JAMon】

JAMon(Java应用程序监视器)是一个免费的,简单,高性能,线程安全的Java API.它让开发者可以方便地监控软件。JAMon用来测定程序的性能瓶颈,程序与用户的互动性和程序的可量测性。JAMon收集概要的统计数据比如执行时间(总的,平均的,最大的,最小的等),并发程序请求等。JAMon把这些统计数据以报表的形式展示出来。

The Java Application Monitor (JAMon) is a free, simple, high performance, thread safe, Java API that allows developers to easily monitor production applications. Here is a link to a short video that gives an overview of JAMon.

JAMon allows developers to track their applications performance and behavior using predefined modules. There are modules that automatically monitor : SQL, HTTP page requests, Spring beans, method invocations, Log4j, and Exceptions. Other modules are often easy to build.

JAMon keeps track of the following metrics for any of the items it tracks in the modules: hits, total, average, min, max and concurrency (average, max, current/active) to name a few.

JAMon is fast and doesn't consume much memory and so it is suitable for production environments.

JAMon statistics, stack traces and more are viewable from the JAMon war, JMX and are also accessible via the JAMon API.

In addition to using modules developers can monitor anything the modules don't cover by using JAMon's simple API methods 'start/stop' and 'add'.

Of course nobody wants to litter their code with calls to add and stop, so when possible JAMon monitoring modules should be used as they allow the easiest monitoring. JAMon was developed primarily for monitoring web applications, however JAMon can be used in any JDK 1.6 or higher environment.

扫描二维码关注公众号,回复: 223669 查看本文章



 

Feel free to continue reading the user's guide or download JAMon and read the Java Docs. The following is a screen snapshot of jamonadmin.jsp from the JAMon WAR. It gives an idea of the type of information JAMon collects such as metrics on: SQL, JDBC, http page requests, http status codes, garbage collections, and exceptions.


 

Features - The following contain links to useful JAMon features:

JAMon WAR - View & manage JAMon data with the JAMon web application

JAMon JMX - View JAMon data in a JMX tool like jconsole and visualvm. (2.80+)

GC metrics - View metrics associated with JVM garbage collections

JAMonListeners - Capture context about each monitor.

Distributed Application Monitoring - View all the data from your organizations applications from a central monitoring web application (the JAMon web application).

猜你喜欢

转载自gaojingsong.iteye.com/blog/2377857