views:

1092

answers:

2

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?

A: 

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?

Lothar
With only 2 GB of memory it is a problem now, although I am getting some new RAM soon :).But this can actually still be a problem when running many other memory hogs at the same time (Virtual PC, Firefox, etc)...
Justin Ethier
I'm debating upgrading from 2 GB as well, Justin, but like you I run all of those other memory intensive apps so... ugh. My debate, by the way, is between getting the RAM or just getting a more powerful machine (though at only 2 years old I'm having a hard time justifying such an expenditure).
gaoshan88
+1  A: 

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

http://blogs.sun.com/kto/entry/why%5Fis%5Fnetbeans%5Fso%5Fslow

Ben Rowe