Java Settings for Netbeans 6.8 on OSX 10.5.8 to optimize cpu usage?

You could try to increase available heap for netbeans. The settings are in $NETBEANS_HOME/etc/netbeans.conf.

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.

Thank you for the advices which lead me to play around with netbeans.conf. Here are my options that significantly improve the performances: -J-server -J-Xverify:none -J-d64 -J-Xss2m -J-Xms256m -J-Xmx512m -J-XX:PermSize=32m -J-XX:MaxPermSize=512m -J-Dsun. Java2d.

Noddraw=true -J-Dsun. Java2d. Opengl=true -J-Dsun.

Java2d. D3d=false -J-Dawt. NativeDoubleBuffering=true -J-XX:+UseAdaptiveSizePolicy -J-Djava.net.

PreferIPv4Stack=true -J-XX:+AggressiveOpts -J-XX:+AggressiveHeap its seems that important ones are: -J-XX:+AggressiveOpts -J-XX:+AggressiveHeap -J-d64 here are some usefull links which inspired me: http://blogs.sun.com/watt/resource/jvm-options-list.html http://java.sun.com/performance/reference/whitepapers/tuning.html#section4.2.5 http://performance.netbeans.org/howto/jvmswitches/index.html I don't try 6.7 because it is now satisfying. I notify in one week if it is definitly a good configuration. Hope it helps!

I try eclipse but it is kind of scary...

1 for sharing your experimental data, which reflects well on stacker's excellent suggestion. I see you accepted it, and I would encourage you to upvote it, too. – trashgod Feb 8 '10 at 3:54 So did you ever decide if this is "definitely a good configuration" and/or if it works well with 6.7?

– rogerdpack May 16 at 16:46 I wonder if adding some more hotspot options would help: blog.headius. Com/2009/01/my-favorite-hotspot-jvm-flags. Html – rogerdpack May 23 at 18:28.

I have been using Netbeans since the 5 series, and it has always been a cpu and memory hog. I use it now only at work when I absolutely must. It doesn't handle large projects well and even on systems with fast hard drives, it still has a large amount of IO activity.

This has been on every Windows system I've used it on, XP, Vista and 7. So it isn't just you. I've also tried playing with every memory setting that I could, and disabling all of the plugins I could and it never helped.

If you can, you might want to try Eclipse. It is a lot more lightweight but getting started with different frameworks can be a bit harder since it doesn't include all of the hand holding.

As you are using Mac OS X, you might try /Applications/Utilities/Activity Monitor. App or /Developer/Applications/Performance Tools/Thread Viewer. App to see what is impacting performance.

While this is hardly an easy solution to implement quickly, I find that running Netbeans 6.9 on a multi-core processor works. While it might ramp up on one core, the other (3 in my case) are still free for other tasks. Given that you're on a Mac, YMMV.

Of course, it would be better to avoid the CPU hog in the first place, but if you can't find the source, but still love the IDE (as I do)...

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions