日期:2014-05-20  浏览次数:20818 次

烦人的需求,大家帮帮我看看呀,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 
------解决方案--------------------
jconsole