EAP 689/OSX DP8 Speed Issues
I'll grant that I'm not running on a fast Mac (G4 450), but my overpriced JBuilder 6 (which I am hoping to be able to replace with IDEA) is quite responsive. I've evaluated 2.6 and it responds fine. But running EAP build 689 response is very slow. Clicking anywhere--menus, the edit frame, etc. takes ~2 seconds to respond.
My question is whether this is a characteristic of the JDK1.4.1 DP or whether this is just a result of the next version of IDEA requiring more horsepower?
请先登录再写评论。
As far as I can tell, it's a bit of both.
There are several things that can be done to help out performance. Setting parms for -Xms -Xmx -XX:NewRation and enabling both garbage collectors seems to help. I have not tried any of these on my mac but since they are vm parms they should work. I currently use
-Xms64m
-Xmx512m (just because i have a lot of memory)
-XX:NewRatio=3 (tweak this for your machine up or down)
-XX:+UseParNewGC
-XX:+UseConcMarkSweepGC
There has also been talks about disabling the copying of jars, but I don't personally use that. Try some of these out and let us all know if they work under mac.
charles decroes wrote:
How would one know whether to tweak this up or down?
Doesn't the Parallel GC work best with multiple CPUs?
Ciao,
Gordon
--
Gordon Tyler
Software Developer, R&D
Sitraka (now part of Quest Software)
"Performance is Mission Critical"
You need to turn on GC debugging (I forget the switch) and then you need to gather data and see which setting causes the most incremental GCs and the least Full GCs.
R
Well someone posted here that the above enabled both garbage collectors. I have not verified that to be true. I'm not sure the vm is capable of doing both types at the same time. The newratio i set just by trial and error i went from 2 up to about 6 and just looked at what was the most responsive and had the best startup time.
I posted that a while back, and according to the docs on Sun's site it does enable both.
As for the NewRatio, just testing to see how fast things start up doesn't prove it's the right setting. The new ratio is useful in the long run when you're GCing, and to prevent full GCs which are the cause of the long hangs we see from time to time. Short incremental GCs is what you want to accomplish for a smooth feel while using the IDE, or any java app/server.
ah, well there you have it :)
I added those settings and have noticed a significant improvement. Most importantly, I can type without the editor playing catchup. Menus are still a bit quirky, but other than that so far it's looking pretty usable.