Bug 476957 - Heap of AUT fills up during suite execution because of memory leak in ReportService
Summary: Heap of AUT fills up during suite execution because of memory leak in ReportS...
Status: UNCONFIRMED
Alias: None
Product: RCPTT
Classification: Technology
Component: Runtime (show other bugs)
Version: 2.0M4   Edit
Hardware: PC Windows 8
: P3 major (vote)
Target Milestone: 2.0.1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-09 07:49 EDT by Daniel Herding CLA
Modified: 2015-09-09 07:49 EDT (History)
1 user (show)

See Also:


Attachments
Screenshot of Memory Analyzer (150.09 KB, image/png)
2015-09-09 07:49 EDT, Daniel Herding CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Herding CLA 2015-09-09 07:49:33 EDT
Created attachment 256458 [details]
Screenshot of Memory Analyzer

Replayed a large test suite with 109 RCPTT test on an AUT whose heap size is limited to 768M.

The last 10 tests failed because they timed out. VisualVM showed that the AUT was heavily slowed down because the heap space was full.

Saved a heap dump and analyzed with Eclipse Memory Analyzer. It showed that of the 768M available space, ~609M were used by
org.eclipse.rcptt.ecl.internal.core.ScriptletManager
more precisely, by the sherlock Nodes which are referenced by the ReportService
(see attached screenshot).

There are 166778 Nodes in memory, many (all?) of them with equal strings.

For us, this memory leak means that we cannot use test suites as intended.