php 如何减少 Netbeans 的内存使用量?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1557883/
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-08-25 03:04:52  来源:igfitidea点击:

How to reduce Netbeans' memory usage?

phpnetbeansmemory-management

提问by Justin Ethier

When using netbeans to edit a PHP project, the IDE can (over time) use 400+ MB of memory. Is there any way to turn off certain features or other tricks to reduce its memory usage?

使用 netbeans 编辑 PHP 项目时,IDE 可以(随着时间的推移)使用 400+ MB 的内存。有没有办法关闭某些功能或其他技巧来减少其内存使用量?

采纳答案by Ben Rowe

You can set the min & max memory limits via the netbeans.conf file.

您可以通过 netbeans.conf 文件设置最小和最大内存限制。

Please, refer to the next faqs:

请参阅下一个常见问题解答:

回答by Lothar

Haven't found any way to reduce either Eclipse and Netbeans. The problem is that javas JVM is using significant amout of memory to hold the compiled class representation. For example code is first compiled with something like -O0 for C compilers and later compiled with much better optimization if this is a frequently executed hotspot.

还没有找到任何方法来减少 Eclipse 和 Netbeans。问题在于 javas JVM 使用了大量内存来保存已编译的类表示。例如,对于 C 编译器,首先使用诸如 -O0 之类的东西编译代码,然后如果这是一个经常执行的热点,则使用更好的优化进行编译。

Thats why it is increasing over time. I don't know about any memory leak in Netbeans - so i guess it is just the program code and not the data set which is growing.

这就是为什么它会随着时间的推移而增加。我不知道 Netbeans 中有任何内存泄漏 - 所以我猜这只是程序代码而不是正在增长的数据集。

The way to reduce it is to remove unnecessary plugins. But is this with the current prices for 4/8GB of RAM really a problem?

减少它的方法是删除不必要的插件。但这与 4/8GB RAM 的当前价格真的是个问题吗?