Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Streaming records with JavaBridge
Streaming records with JavaBridge [message #1235533] Fri, 24 January 2014 15:54
osuwariboy Mising name is currently offline osuwariboy Mising nameFriend
Messages: 24
Registered: December 2010
Junior Member
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: Sat May 26 10:16:24 GMT 2018

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

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

Back to the top