eclipse 如何在eclipse中查看内存使用情况(初学者)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/31254187/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 22:44:20  来源:igfitidea点击:

How to view memory usage in eclipse (beginner)

javaeclipsememorylwjgl

提问by chooky1441

I have been working on a game in java using eclipse for a few months now and I have been trying to figure out how to view the memory usage and what is using the most memory. Can anyone please give me a step by step answer on how I would go about doing this? Thank you.

几个月来,我一直在使用 eclipse 开发 Java 游戏,我一直在尝试弄清楚如何查看内存使用情况以及使用最多内存的内容。任何人都可以请给我一个关于我将如何去做的一步一步的回答吗?谢谢你。

回答by Mudassar

In eclipse you can try Window --> Preferences --> General --> "Show heap status" checkbox

在 Eclipse 中,您可以尝试 Window --> Preferences --> General --> "Show heap status" 复选框

回答by Moam

You can use a good monitoring tool like VisualVM.

您可以使用像VisualVM这样好的监控工具。