views:

3348

answers:

7

Hello,

Hopefully is this question not too far away from the topic of this page!

Yesterday I installed Eclipse Galileo and after trouble with the JDK, its starting well. But I have big problems with performance. Every third second, Eclipse is hanging for a while. It runs not smoothly. I need a efficient IDE as Eclipse for work. So, it would be very nice when you have a fast answer :)

Both Eclipse as the JDK are 64-bit versions.

Have you any ideas?

Thanking you in anticipation,

Best regards, fnst

PS: I hope my english is not so bad as i think ;)

+2  A: 

From your description it sounds like the garbage collector is being triggered. How much RAM have you got in the system? Depending on the plugins you're loading Eclipse can need quite a lot of it. I think the bare minimum is 256 Mb, and realistically you need at least 1 Gb, more if you're doing web development

Have you got an up-to-date JVM? Eclipse generally runs much quicker with a 1.6 JVM.

One other thing to check, do you have an aggressive virus scanner? Eclipse plugins are collections of small files in jars, some virus scanners can really slow down the performance. If you are able, remove the Eclipse install directory from the scanned files.

See this EclipseZone article or this question for some general performance tips.

Rich Seller
Thank you for the fast answer but I have 4 GB of RAM and I don´t think that the issue is because of my hardware. Yes im running a 1.6 JVM. The tip of an agressive virus scanner: Good idea, but I don´t use a scanner :)I become to desperate!
finsterr
Have you run through the items in the linked question? in particular check the eclipse.ini file, the -Xmx and -XX:MaxPermSize arguments may be set too low. Also can you list the additional plugins you have installed?
Rich Seller
Yes I have run through. All argurments are high enough!
finsterr
can you list the additional plugins you have installed? or is it a clean install?
Rich Seller
It´s a clean install, yes.When Eclipse is running and stumble, the window disappears very shortly from the task bar. It´s very strange.
finsterr
+1  A: 

Run Process Monitor and see what kind of system calls and/or file system calls the JVM is doing. Use filters aggressively to pinpoint a specific process. I had a similar issue where a graphics card utility triggered a flood of registry lookups for every UI update which just made Eclipse incredibly slow. (Somehow SWT was hit exceptionally hard by this bug, I'm not sure why.)

EDIT: I meant "Process Monitor", not "Process Explorer". But the link was correct.

JesperE
Thanks for the answer! I was able isolate my issue: When i wait for a few seconds I can click for example on "File -> New -> Java Project". All is running very smoothly! But instantly when I select code in the text editor Eclipse stumble and the javaw.exe blast up to 50 percent of CPU. So I don´t think it´s a UI issue, or?Therefor I started Process Explorer, but I can´t find what you mean. Could you explain your advice further?I hope it was understandable!
finsterr
Sorry. I meant to say "Process Monitor". I'll edit the post.
JesperE
Process Monitor allows you to monitor everything which happens in Windows in real time (as it happens): files being written, registry accesses, thread creation etc. There is a huge amount of data available, but in order to make sense of it you need to filter the data so that it only displays the relevant data for your process. If you see some resource being hit hard (excessive registry access, for example), you can filter on that specific kind of access to see more details.
JesperE
...also, if you manage to pinpoint an exact name of a file or registry entry you'll want to google it to see if others have the same problem.
JesperE
+1  A: 

You could try to run it from within a virtual machine set up on your computer to see if the problem is still there. If it's not, it might be faster for you to just work from within the virtual machine environment. Doesn't address the issue, but it may help avoid it altogether.

JRL
A: 

Having Exact same problem on fresh install on Windows 7 64 Bit. Any ideas aonyone.

ort11
A: 

I have the same problem with windows 7 64 bit. I have a Windows 7 professional 64 bit machine with 8 GB ram. The plugins installed are just subclipse and aptana, not as many as the 2GB ram Windows XP professional machine I used to use (running Europa). But a right click will make the eclipse not responding, let alone doing a SVN update or commit. I noticed that "build automatically" was turned on by default, but turning it off only made it slightly better. Could somebody give some pointers here? Thanks, David

David Zhao
A: 

Same problem for me

I have Windows 7 professional 64 bit and 8gb of RAM

Eclipse is extremely slow, probably 5 times slower than the Windows Vista 32 bit machine I have recently upgraded from (Europa version) - and that machine was a complete dog!

Matt
adding -Xmx1024m-XX:+UseParallelGC-vm C:\Program Files\Java\jdk1.6.0_20\jre\bin\server\jvm.dll has made a pretty big difference.
Matt
A: 

I had same problem so I just switched to the 32 bit version of Eclipse and it runs fine with no performance issues.

Trip