Skip to main content



      Home
Home » Archived » BIRT » Memory leak in ReportEngine.destroy?
Memory leak in ReportEngine.destroy? [message #76752] Fri, 23 September 2005 09:03
Eclipse UserFriend
Hi!

I work on WEB application that uses BIRT 1.0.0 as built-in engine.
ReportEngine object is creating and destroying in static module. Besides,
I pass to EngineConfig.addScriptableJavaObject method some objects for
late using via scripting engine. Unfortunately, BIRT ReportEngine.destroy
does not clear all links to ReportEngine.
To release memory after report generation I need use such workaround:
try {
EngineConfig config = new EngineConfig();
config.addScriptableJavaObject(...);
...
} finally {
if (engine != null) {
engine.destroy();
}
ScriptUtil.getTailoredScript("", null);
Context.getCurrentContext().setWrapFactory(new WrapFactory());
}

Can you please clarify the issue. Why engine.destroy() doesn't release
BIRT's wrap factory class and static links between ReportEngine and
ScriptUtils?

Besides, is my workaround correct for WEB application? If it is, can you
fix this leak in some version?
Previous Topic:ReportEngine.destroy doesn't clear all links
Next Topic:Scope of the variables (how to report values modified in the onRow method )
Goto Forum:
  


Current Time: Sun May 11 14:19:57 EDT 2025

Powered by FUDForum. Page generated in 0.04045 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top