How to reduce Netbeans' memory usage?

后端 未结 2 848
执笔经年
执笔经年 2021-02-12 23:40

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 usag

相关标签:
2条回答
  • 2021-02-13 00:14

    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?

    0 讨论(0)
  • 2021-02-13 00:29

    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
    0 讨论(0)
提交回复
热议问题