Home
Developing Analytics Applications
Leack of memory after several executions in BIRT 4.4.2
Migrateduser
<p>Hi, I have a problem with an Out of memory in a webserver where I'm using the BirtEngine (4.4.2).</p>
<p> </p>
<p>I've defined the BirtEngine as I have read in the documentation (one instance, no more).</p>
<p> </p>
<p>I use IRun and IRender task separately (I have attached the code of BirtEngine.java and my method where I run and render the report). I render to pdf file and my report does 3 sql but is only one page, not tables or iterations.</p>
<p> </p>
<p>I have donde several request (400-500) with SoapUI and Eclipse Memory Analyzer says;</p>
<p> </p>
<p>One instance of <b>"org.eclipse.birt.report.engine.api.impl.ReportEngine"</b> loaded by <b>"org.jboss.modules.ModuleClassLoader @ 0x1964d5e0"</b> occupies <b>159.076.568 (42,59%)</b> bytes. The memory is accumulated in one instance of <b>"org.eclipse.birt.report.engine.api.impl.LinkedObjectManager"</b> loaded by <b>"org.jboss.modules.ModuleClassLoader @ 0x1964d5e0"</b>.</p>
<p> </p>
<p>In this program, in the section "dominator tree" I can see it:</p>
<p> </p>
<div>Class Name | Shallow Heap | Retained Heap | Percentage</div>
<div>
</div>
<div>org.eclipse.birt.report.engine.api.impl.ReportEngine @ 0x1cf195c0| 48 | 159.076.568 | 42,59%</div>
<div>
</div>
<div> </div>
<div>
<div>Class Name | Shallow Heap | Retained Heap | Percentage</div>
<div>
</div>
<div>org.eclipse.birt.report.engine.api.impl.LinkedObjectManager @ 0x1cf1a6a0| 24 | 159.076.368 | 42,59%</div>
<div>
</div>
<div> </div>
<div>And I can see 547 elements of this:</div>
<div> </div>
<div>
<div>Class Name | Shallow Heap | Retained Heap | Percentage</div>
<div>
</div>
<div>org.eclipse.birt.report.engine.api.impl.LinkedObjectManager$LinkedEntry @ 0x1e023e58| 24 | 291.744 | 0,08%</div>
<div>
</div>
<div> </div>
<div>
<div>Am I doing something wrong in the code? maybe for clean the linkedObjectManager...I dont know, but when the entries are about 4000 my server gets an out of memory and ReportEngine has 900 MB.</div>
<div> </div>
<div>I have attached one image of the OQL section in Eclipse Memory Analyzer.</div>
<div> </div>
<div>Thanks</div>
<div> </div>
</div>
</div>
</div>
<p> </p>
<p> </p>
Find more posts tagged with
Comments
There are no comments yet