I had a windows vista machine with much lower specs and Netbeans6.8+Scala2.8 worked fine.
old specs: Vista home premium, 4 GB ram, 320 gb hdd 5400 rpm, java 1.6.0.16
new specs: Win 7 professional, 8 GB ram, 250 gb ssd, java 1.6.0.21
The compilation on the new machine is much slower. Java and javaw take up to 95% cpu during compile.
any ideas how this can be fixed?
I am not able to upgrade NB due to some restrictions.
Answering my own question since I found the cause:
The reason (don’t know if it applies to other Netbeans versions apart from 6.8):
Netbeans currently runs in 32 bit mode only, so when on the new PC, it was an issue with running the 64 bit JVM from Netbeans. This problem is discussed here:
Issues with running 64 bit JDK under Netbeans
The easiest solution for me was to install a 32 bit JDK and force Netbeans to use it as the default platform (required modifying netbeans.conf). Additionally,
-J-Xmx512mdid not work on the 32-bit JDK, so I had to set it to
-J-Xmx400mThe following stackoverflow link was also helpful in figuring out the optimal settings:
Netbeans config options for optimal performance