Bug 149948 - Eclipse runs out of memory periodically with full Callisto install.
Summary: Eclipse runs out of memory periodically with full Callisto install.
Status: RESOLVED DUPLICATE of bug 153485
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Tod Creasey CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 149947 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-07-07 02:45 EDT by Werner Traut CLA
Modified: 2006-08-10 15:29 EDT (History)
7 users (show)

See Also:


Attachments
Stack Trace after Eclipse freezes (14.96 KB, text/plain)
2006-07-07 02:47 EDT, Werner Traut CLA
no flags Details
Stack Trace after Eclipse freezes (14.90 KB, text/plain)
2006-07-07 02:47 EDT, Werner Traut CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Werner Traut CLA 2006-07-07 02:45:20 EDT
My Eclipse starts freezing after a while. I can be doing anything from creating a new project to hitting the search button on the toolbar. There is really nothing in particular you can do to reproduce this bug. Eclipse will hang and never recover, with javaw taking almost all of the CPU time.

I have the Callisto release of Eclipse with all the Callisto plugins installed.

Attached is two stack traces I have captured.
Comment 1 Werner Traut CLA 2006-07-07 02:47:17 EDT
Created attachment 45906 [details]
Stack Trace after Eclipse freezes
Comment 2 Werner Traut CLA 2006-07-07 02:47:47 EDT
Created attachment 45907 [details]
Stack Trace after Eclipse freezes
Comment 3 Gunnar Wagenknecht CLA 2006-07-07 07:22:28 EDT
*** Bug 149947 has been marked as a duplicate of this bug. ***
Comment 4 Tod Creasey CLA 2006-07-07 07:52:07 EDT
Werner

Could you also let me know how much memory you have and which vm you are using please?
Comment 5 Tod Creasey CLA 2006-07-07 07:56:19 EDT
Looking at your traces you have the following Thread in both:

"Low Memory Detector" daemon prio=6 tid=0x0031fa18 nid=0xd18 runnable [0x0000000
0..0x00000000]

which indicated that you are pushing the limits of your machine and that likely your java heap is so big that the vm is causing constant memory swapping.

Do you run with the heap status (Preferences->General->Show Heap Status). If you run with this you will hopefully be able to see which operation is causing the memory spike
Comment 6 Werner Traut CLA 2006-07-07 09:53:54 EDT
I have an Intel 3.2 Ghz, 1 Gig memory and Java VM 1.5 update 6.

I am running with the heap monitor and normally when it freezes it shows about half full.

I tried starting Eclipse with -vmargs -XX:MaxPermSize=256m and have not experienced a hang up again (touch wood). Will see what happens on Monday.
Comment 7 Wim Jongman CLA 2006-07-07 11:03:07 EDT
(In reply to comment #4)
> Werner
> 
> Could you also let me know how much memory you have and which vm you are using
> please?
> 

I have the same situation and editted bug 146800 with additional info. I am running 1gig and vm 1.5b4. These are my startup options: C:\Eclipse32Callisto\eclipse\eclipse.exe -console -vmargs  -Xmx512M

I will try the -XX:MaxPermSize=256m as well.
Comment 8 Werner Traut CLA 2006-07-10 04:18:58 EDT
This -vmargs -XX:MaxPermSize=256m has definitaly made a difference. Haven't had a freeze again. Will still monitor for a few days.
Comment 9 Wim Jongman CLA 2006-07-10 10:14:42 EDT
(In reply to comment #7)
> I will try the -XX:MaxPermSize=256m as well.

My problems seem to be over with the maxpermsize added. I will keep Eclipse open for a few days. 

Comment 10 Tod Creasey CLA 2006-07-11 13:14:47 EDT
OutOfMemory errors are fairly easy to replicate in this scenario. When I install all of Callisto and then load the ui plug-ins and the ui test suites we get an OutOfMemory error about halfway through the run.

I experimented with commenting out the early startup code and it runs fine so it appears to be the memory requirements of the early startup plug-ins. 

My workbench with a full Callisto install has a 127M heap so I don't think it is possible to run with everything loaded without running without using the -Xmx or -XX:MaxPermSize parameter.
Comment 11 Tod Creasey CLA 2006-07-11 13:25:17 EDT
Here are the early startup plug-ins

org.eclipse.update.scheduler
org.eclipse.update.scheduler
org.eclipse.birt.report.debug.ui
org.eclipse.cdt.make.ui
org.eclipse.hyades.statistical.ui
Comment 12 Mike Wilson CLA 2006-07-11 14:09:26 EDT
Why is org.eclipse.update.scheduler in the list twice?
Comment 13 Werner Traut CLA 2006-07-12 02:41:53 EDT
Running with -vmargs -Xms64M -Xmx512M still causes eclipse to hang. It only stopped hanging when I added the MaxPermSize.
Comment 14 John Arthorne CLA 2006-07-20 09:44:47 EDT
Note that the "Low Memory Detector" thread is a standard thread in the Sun 1.5 VM. It is always there regardless of actual memory usage, and does not indicate that the VM is out of memory. 
Comment 15 John Arthorne CLA 2006-08-10 15:29:27 EDT

*** This bug has been marked as a duplicate of 153485 ***