Bug 274623 - Just Typing in Eclipse causes Out Of Memory Error
Summary: Just Typing in Eclipse causes Out Of Memory Error
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 3.4.2   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2009-04-30 23:00 EDT by Seth Hoenig CLA
Modified: 2009-10-01 09:36 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Seth Hoenig CLA 2009-04-30 23:00:06 EDT
Build ID: M20090211-1700

Steps To Reproduce:
1. Type Text into eclipse
2. That's it.
3. No seriously, after about 20 minutes of work, eclipse is using 1.6 gigabytes of RAM at which point it crashes with a java.lang.OutOfMemory error.



More information:
Using Windows XP.
Java Version: "1.6.0_13"

Using the Android Developer plugin, but I have found this to be irrelevant through isolated and 100% reproducible tests. All you have to do is type about 10 pages worth of text. Or even faster, just copy and paste a bunch of text, and hold down the delete key while watching the RAM usage skyrocket in Task manager.
Comment 1 Seth Hoenig CLA 2009-04-30 23:56:53 EDT
Here, I uploaded a video of the easily reproducible step to youtube to make this error occur:

http://www.youtube.com/watch?v=hfI2_7UB6II&feature=channel
Comment 2 Remy Suen CLA 2009-05-01 07:16:07 EDT
(In reply to comment #0)
> Using the Android Developer plugin, but I have found this to be irrelevant
> through isolated and 100% reproducible tests.

So does that mean you can reproduce it without the Android plug-in? Can you reproduce with the default Eclipse SDK build?
http://download.eclipse.org/eclipse/downloads/drops/R-3.4.2-200902111700/index.php

> All you have to do is type about
> 10 pages worth of text. Or even faster, just copy and paste a bunch of text,
> and hold down the delete key while watching the RAM usage skyrocket in Task
> manager.

I created a file in Linux with about 6000 lines of text (I don't know if that's ten pages or not) and proceeded to hold the backspace button. I held it for about 20-30 seconds but nothing appeared to have happened. While my heap usage went up a bit it also subsequently performed a garbage collection which made the change in usage moot.
Comment 3 Paul Webster CLA 2009-05-01 08:08:59 EDT
We can't reproduce that here, at least not with the classic eclipse SDK.


2 other things you can do are 1) while chewing up memory, use http://wiki.eclipse.org/index.php/How_to_report_a_deadlock to attach a JVM dump and 2) install http://www.eclipse.org/mat/ the Memory Analyzer and find out what objects are chewing up all of your memory.

PW
Comment 4 Paul Webster CLA 2009-05-04 09:06:47 EDT
Please re-open with requested information.

PW