Bug 260739 - jdt.core model tests ran out of heap space on linux.gtk.x86_6.0 in build N20090111-2000
Summary: jdt.core model tests ran out of heap space on linux.gtk.x86_6.0 in build N200...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.5 M7   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 269476
Blocks:
  Show dependency tree
 
Reported: 2009-01-12 11:21 EST by Kim Moir CLA
Modified: 2009-04-28 07:12 EDT (History)
2 users (show)

See Also:


Attachments
log from running jdt core model tests (2.07 KB, text/plain)
2009-01-12 11:21 EST, Kim Moir CLA
no flags Details
Patch to activate the memory trace (929 bytes, patch)
2009-01-30 10:55 EST, Frederic Fusier CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kim Moir CLA 2009-01-12 11:21:59 EST
Created attachment 122285 [details]
log from running jdt core model tests 

The jdt.core model tests ran out of heap space in the N20090111-2000 build.

Current the settings in the eclipse.ini are 

-Xms40m
-Xmx256m 

I reran the tests by themselves and the tests passed.  I'm just wondering if the  values in the eclipse.ini should be increased. Have you seen this in your testing?  I'll attach some of the log.
Comment 1 Jerome Lanneluc CLA 2009-01-14 09:51:00 EST
On the contrary, we recently reduced the size taken by the Java model. So if the test ran out of heap space, it means that another component took more heap space.

-Xmx256m is enough to run the whole IDE, so I don't think this setting should be changed.

Did subsequent builds have this problem? Or was it a transient problem with this build?
Comment 2 Kim Moir CLA 2009-01-14 10:02:12 EST
It was  transient problem. I reran the jdt.core model suite and the problem didn't occur.  Olivier suggested that the problem may have resulted from a previous test run.  So I reran all the jdt core tests that proceeded this test.  The tests ran without running out of heap space.  Since we can't reproduce this problem I'll close this as invalid.
Comment 3 Frederic Fusier CLA 2009-01-30 10:40:09 EST
Reopen as we hit this issue several times again...
Comment 4 Frederic Fusier CLA 2009-01-30 10:55:38 EST
Created attachment 124288 [details]
Patch to activate the memory trace

This patch will set on the tests memory trace and log results in a file located in /buildtests/${buildID}/eclipse-testing directory of the test machine.

With this trace, we should hopefully see in which test suite the memory consumption responsible of the OOME occurs...
Comment 5 Frederic Fusier CLA 2009-01-30 11:12:53 EST
(In reply to comment #4)
> Created an attachment (id=124288) [details]
> Patch to activate the memory trace
> 
Released in HEAD
Comment 6 Chris Grindstaff CLA 2009-02-04 09:33:02 EST
Hi Frederic,
I'm not sure which VM is being used to run these tests but why not set -XX:+HeapDumpOnOutOfMemoryError so a heap dump is genereted when the OOME is triggered. 

A heap should make it easier to determine what's bloated or leaking.
Comment 7 Frederic Fusier CLA 2009-02-05 09:24:49 EST
(In reply to comment #6)
> Hi Frederic,
> I'm not sure which VM is being used to run these tests but why not set
> -XX:+HeapDumpOnOutOfMemoryError so a heap dump is genereted when the OOME is
> triggered. 
> 
> A heap should make it easier to determine what's bloated or leaking.
> 
Thanks Chris for the tip. I've added this VM argument to our test.xml file...
Comment 8 Chris Grindstaff CLA 2009-02-05 10:13:40 EST
Frederic

I can take a look at the dumps if/when they happen. Feel free to ping me on ST cgrinds@us.ibm.com.
Comment 9 Frederic Fusier CLA 2009-04-20 04:54:45 EDT
I think we can consider it fixed as the problem hasn't occurred again since blocking bug 269476 has been fixed...
Comment 10 David Audel CLA 2009-04-28 07:12:36 EDT
Verified for 3.5M7.