Memory leak in ReportEngine.destroy? [message #76752] |
Fri, 23 September 2005 09:03 |
Eclipse User |
|
|
|
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?
|
|
|
Powered by
FUDForum. Page generated in 0.04045 seconds