How to reduce Netbeans' memory usage?

[亡魂溺海] 提交于 2020-01-01 04:05:08

问题


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?


回答1:


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

Please, refer to the next faqs:

  • http://wiki.netbeans.org/FaqSlowNetBeans
  • http://wiki.netbeans.org/FaqNetBeansAndOOME



回答2:


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.

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.

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?



来源:https://stackoverflow.com/questions/1557883/how-to-reduce-netbeans-memory-usage

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!