Skip to main content



      Home
Home » Archived » BIRT » Streaming records with JavaBridge
Streaming records with JavaBridge [message #1235533] Fri, 24 January 2014 10:54
Eclipse UserFriend
Hi, I've been running into more and more "Out of memory" errors with my BIRT reports. As our database is growing, this thing is becoming more and more frequent and solving it requires us restarting the Tomcat service each and every time.

Anyway, the problem, I believe is that the report is trying to load everything into memory before actually outputting anything on the screen, so I've been trying to fix that, but with no definite idea of what I'm doing, my chances of finding anything are slim to none. So far, my intuition tell me this code might be the one that needs to be modified to "stream" records instead of loading everything into a byte array.

$out = new java("java.io.ByteArrayOutputStream");
$options->setOutputStream($out);
$this->task->setRenderOption($options);

$this->task->run();
$this->task->close();

echo java_values($out->toByteArray());


Anyone has any idea?

Thanks in advance,

Osu
Previous Topic:Birt Eclipse problems after upgrade to Windows 8.1
Next Topic:Building and Exporting BIRT 4.3.0 Viewer for Tomcat
Goto Forum:
  


Current Time: Sun Jul 06 11:52:56 EDT 2025

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

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

Back to the top