Sorry I have several question relative to the same problem.
I am using Netbeans 6.8 on OSX 10.5.8 with java 1.6.0_17 and after about 5 minutes of work, the cpu usage
You could try to increase available heap for netbeans. The settings are in $NETBEANS_HOME/etc/netbeans.conf
The interessting one is netbeans_default_options
Default is: -J-Xms32m I would start with -Xms256m -Xmx512m
with -J (prefix)
EDIT: From netbeans.conf
If you specify the heap size (-Xmx) explicitely, you may also want to enable
# Concurrent Mark & Sweep garbage collector. In such case add the following
# options to the netbeans_default_options:
# -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled