---
title: "web开发性能工具"
author: "hbkh2000"
date: "2011-09-30T17:18:29Z"
tags: []
categories: ["编程语言"]
slug: "web"
draft: false
lastmod: "2011-12-19T11:24:58Z"
id: 1183948
url: "https://hbkh2000.iteye.com/blog/1183948"
---

高性能WEB开发(6) - web性能测试工具推荐 ： [http://www.blogjava.net/BearRui/archive/2011/08/22/319590.html](http://www.blogjava.net/BearRui/archive/2011/08/22/319590.html) 

 

[JProfiler试用手记( 转 )](http://www.cnblogs.com/serendipity/articles/1963904.html) ：[http://www.cnblogs.com/serendipity/articles/1963904.html](http://www.cnblogs.com/serendipity/articles/1963904.html) （听说很不错）

 

JAVA性能瓶颈和漏洞检测 ：[http://www.blogjava.net/mrzhangshunli/archive/2007/08/27/140066.html](http://www.blogjava.net/mrzhangshunli/archive/2007/08/27/140066.html) 

 

常用的一些免费工具 ：[http://java-source.net/open-source/profilers](http://java-source.net/open-source/profilers)

 

[十个最好的Java性能故障排除工具](/news/2943 "十个最好的Java性能故障排除工具") ：[http://www.iteye.com/news/2943](http://www.iteye.com/news/2943) 

 

 

Jprofiler 基本使用：

**需要的东西：**

1、先解压压缩包；Jprofiler 在e 盘；

2、jprofiler\_windows\_6.2.4.txt 文件记录了序列号和tomcat的catalina.bat文件需要的内容；

 

**配置：**

1、配置Jprofiler 的环境变量；

    JPROFILER\_HOME=E:\\jprofiler\_windows\_6\_2\_4\\jprofiler6

2、Tomcat里面修改catalina.bat文件；

3、Eclipse中Tomcat的jvm需要设置；设置如下：（内存还不能设置过大）

-Xms256m -Xmx512m -XX:MaxNewSize=256m -XX:MaxPermSize=256m -agentpath:E:\\jprofiler\_windows\_6\_2\_4\\jprofiler6\\bin\\windows\\jprofilerti.dll=port=8849 -Xbootclasspath/a:E:\\jprofiler\_windows\_6\_2\_4\\jprofiler6\\bin\\agent.jar

 

**其它：**

Eclipse 启动只能在运行模式下，不能在调试模式下；要先启动Jprofiler，tomcat才可以启动，不然就等待8849端口；

如果不需要Jprofiler，将Tomcat的jvm参数修改一下，将catalina.bat文件修改一下应该就可以了；

Jprofiler的启动文件：

E:\\jprofiler\_windows\_6\_2\_4\\jprofiler6\\bin\\jprofiler.exe;

Jprofiler自己提供了一个程序，启动就可以用Jprofiler监控了；

配置Jprofiler就可以监控我们的程序了，如何配置呢？如下：

 

**运行：**

直接点：E:\\jprofiler\_windows\_6\_2\_4\\jprofiler6\\bin\\jprofiler.exe;

  会弹出一个“jprofiler start center“，选择一个open session（就是指监控那个项目）即可；open session的配置也很简单；

 

[JProfiler远程监控Tomcat](http://www.blogjava.net/envoydada/archive/2007/07/30/133285.html) :http://www.blogjava.net/envoydada/archive/2007/07/30/133285.html