Netbeans not using available memory during compilation

219 Views Asked by At

Using NetBeans on linux, compiling a program ~6000 lines long, and appear to have reached a threshold of some sort. Compilation time has jumped from about one minute to over 25.

It's clearly a memory issue, the IDE is taking 300Meg and not one byte more, despite clearly needing to. I've added -J-Xmx600m to the netbeans.conf file, and modified the xms command to 132m, but although the log file reports:

Compiler: HotSpot Client Compiler
Heap memory usage: initial 132.0MB maximum 580.0MB
Non heap memory usage: initial 160.0kB maximum -1b
Garbage collector: Copy (Collections=23 Total time spent=1s)
Garbage collector: MarkSweepCompact (Collections=3 Total time spent=0s)

It's clearly not working.

Is there any configuration option in the IDE itself which I need to be tinkering with?

1

There are 1 best solutions below

0
On

Thanks to an incredibly helpful person on the netbeans user mailing list, who solved this for me.

It wasn't memory after all; but a bug in version 8u5 of the JDK. I switched back down a couple of versions, and everything works perfectly now.