使用eclipse测试一个java程序的内存消耗 [英] test memory consumption of a java program with eclipse

查看:244
本文介绍了使用eclipse测试一个java程序的内存消耗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在eclipse中有一个插件,我可以使用它来测试谁拥有多少内存,只需要运行程序的成本?我认为插件可能有一个按钮,在我运行程序之后,我可以点击它,它显示了我的程序的偷窥内存消耗的图形。感谢

Is there a plugin in eclipse that I could use to test who much memory has my just run program cost? I am thinking there may be a button from the plugin, after I run the program, I could click on it, and it shows me a graph of sort of the peek memory consumption of my program just now. Thanks

推荐答案

我个人喜欢VisualVM(教程),包含在最新的JDK版本中。

I personally like VisualVM (tutorial), included with the latest JDK releases.

这篇关于使用eclipse测试一个java程序的内存消耗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆