Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 340109 - HTMLReportEmitter Consumes Unnecessarily High Memory
Summary: HTMLReportEmitter Consumes Unnecessarily High Memory
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.6.1   Edit
Hardware: All All
: P3 major with 22 votes (vote)
Target Milestone: 3.7.0 RC1   Edit
Assignee: Jianchao Li CLA
QA Contact: Xiaoying Gu CLA
URL:
Whiteboard: Obsolete
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-16 01:06 EDT by Scott Hamilton CLA
Modified: 2011-05-17 04:07 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Hamilton CLA 2011-03-16 01:06:39 EDT
The HashSet<String> outputBookmarks gets an entry for each table and div but the data is never used (as far as I can see). So if you have 1 million pages (an extreme, I know), you get 1 million bookmark entries added to the hashset.

Ouch!

As a work-around for now, I subclassed this emitter and forced this field to null, which safely does NOT add to the HashSet, and wow, oh, the memory savings! I'm generating millions of pages with negligible memory consumption!!!
Comment 1 Jianchao Li CLA 2011-05-17 03:53:27 EDT
The hash set for the bookmarks in HTMLReportEmitter is unnecessary now because a BookmarkManager is used when executing the report items to guarantee the user defined bookmarks are unique for the HTML output. Fixed in 2.6.2 and head branch.