首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2SE开发 >

烦人的需求,大家帮帮小弟我看看呀,wed程序的检测工具

2012-12-25 
烦人的需求,大家帮帮我看看呀,wed程序的检测工具在 windows xp下 用eclipse 开发jsp + Servlet web 程序现

烦人的需求,大家帮帮我看看呀,wed程序的检测工具
在 windows xp   下 用  eclipse 开发  jsp + Servlet web 程序

现在想问下,有什么工具可以跟着程序的运行 一直 监测 例如: 耗时,内存,等等的信息

因为程序要做性能上的优化! 所以想知道一些 耗时 和 内存 容易溢出的地方!

希望各位大大 帮帮忙啦!!!!! 
[解决办法]
firebug
[解决办法]
jvm的属性
Properties prop = System.getProperties();
Enumeration propertyEnum = prop.propertyNames();
while(propertyEnum.hasMoreElements()) {
String key = (String) propertyEnum.nextElement();
String value = (String) prop.get(key);
System.out.println(key +" = "+value);
}
 
内存相关参数
total = (int) (Runtime.getRuntime().totalMemory() / (1024 * 1024));

free = (int) (Runtime.getRuntime().freeMemory() / (1024 * 1024));

int status = free * 100 / total;

[解决办法]
jprofiler 烦人的需求,大家帮帮小弟我看看呀,wed程序的检测工具
[解决办法]
jconsole

热点排行