My NetBeans IDE consumes a lot of memory, especially on 64 bits. What can I do?
If you are using 64-bit operating system, you can try to start NetBeans with:
Note that UseCompressedOops is on by default in JDK 6 update 21 and newer.
This should save memory, as shown in the next table. The table shows how much of the heap memory is occupied after the IDE is started and a project is cleaned and built.
|clean & build||after GC|
|64-bit||380 MB||70 MB|
|64-bit UseCompressedOops||320 MB||54 MB|
|32-bit||220 MB||42 MB|
Used: NetBeans 6.9 dev (PHP + Java), JDK 1.6.0_16, project LimeWire.
Note: This option was not thoroughly tested. It seems working fine since JDK 1.6.0_16 on Linux, but if you experience stability problems, let us know or just mention it on this wiki page (OS and JDK version).