---
title: "uProfiler Community 1.0发布"
author: "Mojarra"
date: "2013-06-08T09:39:58Z"
tags: []
categories: ["编程语言"]
slug: "uprofiler-community-1-0"
draft: false
lastmod: "2013-06-08T09:39:58Z"
id: 1884232
url: "https://mojarra.iteye.com/blog/1884232"
---

uProfiler Community 1.0是面向主题的JVM性能监控和分析工具，它利用字节码技术分析class，收集函数的执行耗时，并以图形化的界面实事显示JVM性能。不同于 JVisual VM系统层面的监控和分析，uProfiler面向主题，监控当前JVM的运行情况，让系统管理人员及时发现APP运行期的状态，有助于开发人员快速的发现和定位代码中潜在的问题。

主要功能有：

1. 轻量级的函数执行耗时收集框架，并以JMX接口提供对外访问，占用资源少
2. 面向主题的类分析和归类，目前内置了Spring、Struts框架代码执行分析器。
3. 支持自定义主题
4. 跟踪当前JVM中所执行的SQL语句
5. 图形化、表格化的监控客户端

使用方法：下载uProfiler Community 1.0发行版后，解压后，切换到example目录，执行下面的命令（假设您已经安装并配置好了Maven），

```
export MAVEN_OPTS="-javaagent:../lib/uAgent-1.0.0.jar -Dagent.config=src/main/resources/agent.properties -Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.ssl=false"

##  对于windows系统
set MAVEN_OPTS="-javaagent:../lib/uAgent-1.0.0.jar -Dagent.config=src/main/resources/agent.properties -Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.ssl=false"
```

 然后启动example工程

```
mvn jetty:run
```

 然后双击执行发行版中的uProfiler\_Client.jar或者在终端执行,

```
java -jar uProfiler_Client.jar
```

 点击New按钮按照向导界面，连接到127.0.0.1:9999 JMX服务端口，在浏览器中输入http://localhost:8080/resources/file.html，上传文件，查看图形界面的变化.

![](http://static.oschina.net/uploads/space/2013/0607/203007_FCfo_564772.png)

![](http://static.oschina.net/uploads/space/2013/0607/203018_DuIs_564772.png)

![](http://static.oschina.net/uploads/space/2013/0607/203516_Nw5R_564772.png)

 

![](http://static.oschina.net/uploads/space/2013/0607/203306_k1uT_564772.png)

![](http://static.oschina.net/uploads/space/2013/0607/203101_tb2P_564772.png)

![函数监控图](http://static.oschina.net/uploads/space/2013/0607/203029_C0ho_564772.png)

下载地址：http://sourceforge.net/projects/uprofiler/files/uProfiler%20Community%201.0%20dist.zip/download

 

@仪山湖