Bug 141059 - Eclipse 3.2 has memory/cpu issues
Summary: Eclipse 3.2 has memory/cpu issues
Status: VERIFIED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: 3.5 M2   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo, performance
Depends on:
Blocks:
 
Reported: 2006-05-10 11:39 EDT by Max Rydahl Andersen CLA
Modified: 2008-09-15 08:43 EDT (History)
4 users (show)

See Also:


Attachments
Stack trace from same problem (15.31 KB, text/plain)
2008-03-12 17:06 EDT, Kurt Zettel CLA
no flags Details
Thread Dump (23.77 KB, text/plain)
2008-03-18 12:05 EDT, Kurt Zettel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Max Rydahl Andersen CLA 2006-05-10 11:39:03 EDT
Eclipse 3.2 is a *big* improvement over Eclipse 3.1 in startup and general speed but since I started using 3.2 for real (3.2RC1 & 3.2RC2) I have started to see eclipse/javaw.exe to suddenly start using all cpu and bring my machine to a grinding halt and finally I can't do much than do a hard restart.

Before I could run 3.1 for days/weeks without having to do any restarts.

I'll try and use Eclipse 3.2RC3 now and see if the problem persists.

(WTP 1.5 might also be the "bad" guy, but the problem only seem to occur when editing JDT/PDE related files)

Just wanted to raise this bug (which has been confirmed by happening on other colleagues machines too) and see if it is known or somehow identifiable issue.
Comment 1 Olivier Thomann CLA 2006-05-10 11:44:03 EDT
Could you please at least provide a thread dump when this occurs?
Comment 2 Max Rydahl Andersen CLA 2006-05-10 11:54:59 EDT
I would *love* to do so, but as I said the computer *really* hangs immensly.

The mouse moves in jerks and keyboard input is *very* slow.

And it occurs out-of-the-blue...

But i'll try and get a threaddump...anyone know of a tool that could run in the background and take threaddumps of the java process at certain intervals and e.g. dump it to a file with timestamps ? Then when it occurs i could just let it stand there for a while and hope that the background process will be able to grap a threaddump at some point 
Comment 3 Kent Johnson CLA 2006-05-10 13:01:42 EDT
Which 1.5 VM build are you using?

Is the problem reproduceable with a 1.4 VM?
Comment 4 Max Rydahl Andersen CLA 2006-05-11 01:50:11 EDT
i'm running with jdk 1.5.0_03 I'll try and upgrade if needed.

Comment 5 Andrew Dick CLA 2006-12-13 11:37:24 EST
I also am getting this with both Eclipse 3.2.1 and Eclipse 3.3M3.  Plugins installed for 3.3M3 are wtp-S-2.0M3-200611170109, Eclipse Checkstyle 4.1.1, Jadclipse 3.2.2.  CPU use will shoot to 95-99% with minimal use (navigating through JSP or Java file).  During this time, ctrl-c and ctrl-x do not work (nothing is copied to clipboard, although if something was already there, it doesn't disappear, Preferences are unuseable - only the general screen appears... nothing happens if you click on other preference windows.  JDK version is 1.5.0_06-b05.
Comment 6 moran CLA 2007-03-13 13:01:54 EDT
I am also experiencing the memory/cpu consumption. When terminating a launched application it seems to be keeping a 50% CPU utilization (on a dual core) although nothing is apparently being processed. This happens more often when terminating debug sessions.

3.3 Stream Stable Build	3.3M5eh	Thu, 22 Feb 2007 -- 09:51 (-0500)
Version: 3.3.0
Build id: I20070222-0951

Comment 7 Olivier Thomann CLA 2007-03-13 13:10:29 EDT
Would it be possible to get a snapshot when it hangs?
Start with -consolog and a java.exe executable.
When it hangs, do a Ctrl + Break inside the dos console.
If you cannot do that, then you might want to try with a JDK6 VM and run the jconsole tool to get a trace of the VM when it hangs.
Comment 8 Eric Jodet CLA 2007-07-12 01:48:17 EDT
(In reply to comment #6 and comment #7)
Did you manage to reproduce this issue using a 3.3 build?
If this is still present, may you please provide us with the requested vm snapshots?
Thanks.
Comment 9 Kurt Zettel CLA 2008-03-12 17:06:33 EDT
Created attachment 92369 [details]
Stack trace from same problem

I have the same issue.  It appears to happen after I debug a remote application (specifically a BlackBerry application).  I am running:
-Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode)
-Eclipse Version: 3.3.3.r33x_r20080129-_19UEl7Ezk_gXF1kouft Build id: M20080221-1800
-MyEclipse Version: 6.0.0 GA  Build id: 6.0.0-GA-200708
Comment 10 Kurt Zettel CLA 2008-03-18 12:05:09 EDT
Created attachment 92816 [details]
Thread Dump

I received the same problem with jdk1.6.0_05.  Attached is the thread dump.
Comment 11 Jerome Lanneluc CLA 2008-03-19 07:49:34 EDT
I'm not seeing anything wrong with the thread dumps. JDT/Core is being called by com.iw.plugins but there is no way to tell if this plugins calls us correctly or not. Can you please try without this plugin?

Also how much memory do you give to the VM that starts Eclipse? Have you tried playing with the -Xmx argument in the eclipse.ini file?
Comment 12 Jerome Lanneluc CLA 2008-08-26 07:39:35 EDT
Please reopen if you have more information (see comment 11).
Comment 13 Frederic Fusier CLA 2008-09-15 08:43:33 EDT
Verified for 3.5M2 using I20080914-2000.