Bug 72088 - Random javaw.exe runaway process comsumes all CPU
Summary: Random javaw.exe runaway process comsumes all CPU
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2004-08-17 09:32 EDT by Todd Lainhart CLA
Modified: 2007-06-22 10:04 EDT (History)
0 users

See Also:


Attachments
Java dump during 98% CPU usage of Eclipse 3.0 session (610.54 KB, text/plain)
2004-08-23 16:18 EDT, Todd Lainhart CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Todd Lainhart CLA 2004-08-17 09:32:44 EDT
Just upgraded to 3.0 release Eclipse/JDT.  Once or twice a day, during random 
edits of either code or Javadoc, javaw.exe kicks in (perhaps for syntax 
completion/checking) consumes 95% of CPU, and hangs the Eclipse IDE.  
Ultimately the process must be killed.  Tried both the IBM 1.4.1 and 1.4.2 
JDKs for Windows, with same results.  Others in org experiencing same problem.

  -- Todd
Comment 1 Olivier Thomann CLA 2004-08-17 11:28:18 EDT
We need at least some information to reproduce the problem. Could you please run
in debug mode and when the hang occurs, use Ctrl + Break in the java console and
attach the thread dumps.
Thanks.
Comment 2 Todd Lainhart CLA 2004-08-23 16:18:39 EDT
Created attachment 14132 [details]
Java dump during 98% CPU usage of Eclipse 3.0 session
Comment 3 Jerome Lanneluc CLA 2004-08-25 03:37:38 EDT
Trace indicates that the time is spent in the editor.
Moving to JDT Text for comments.
Comment 4 Dani Megert CLA 2004-08-25 03:53:31 EDT
To me this looks like you reach the VM's (or your machines) memory limit. You
wrote "and hangs the Eclipse IDE" but when looking at the dump the editor is
seems still working and not hanging in a dead-locked.

- how long did you wait before killing Eclipse? Next time when it happens, please 
  create thread dumps at let's say a 30 seconds intervals and attach them
- how much memory do you give Eclipse?
- next time when it happens check the VM size in the Windows Task Manager

Reopen once this information has been provided.
Comment 5 Todd Lainhart CLA 2004-08-25 10:51:38 EDT
> how long did you wait before killing Eclipse? Next time when it happens,    
>please create thread dumps at let's say a 30 seconds intervals and attach them

Typically wait 5-10 mins.  Will create more dumps on next hang.

> how much memory do you give Eclipse?

According to doc, the default is 64MB.  I'm now starting Eclipse with -
Xmx512M.  Machine swap space is 4Gig.

> next time when it happens check the VM size in the Windows Task Manager

Assuming I can open Task Manager.  Typically, I cannot.

If the JVM is running out of VM memory, shouldn't the Eclipse app signal same?
Comment 6 Dani Megert CLA 2004-08-25 11:10:32 EDT
>I'm now starting Eclipse with -Xmx512M
I assume you use -vmargs -Xmx512M correct?

>Machine swap space is 4Gig.
Swap space can actually cause the pain: the time can well be spent swapping
Eclipse back in e.g. if you switched to another app, minimized Eclipse or simply
didn't do anything. WindowsXP likes to swap out stuff even if there's still tons
of RAM.

>If the JVM is running out of VM memory, shouldn't the Eclipse app signal same?
It will but it can take quite some time because it tries to garbage collect first

>Assuming I can open Task Manager.  Typically, I cannot.
Open it before and give it a higher priority

Please reopen once you can check the VM memory and attach it here together with
the dumps.
Comment 7 Dani Megert CLA 2007-06-22 09:58:55 EDT
Get rid of deprecated state.
Comment 8 Dani Megert CLA 2007-06-22 10:04:18 EDT
.