Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » BirtViewer - ok, Birt API - OutOfMemory(Need memory consumption explanation)
BirtViewer - ok, Birt API - OutOfMemory [message #1125426] Fri, 04 October 2013 09:54 Go to next message
ILya Cyclone is currently offline ILya Cyclone
Messages: 13
Registered: June 2013
Junior Member
Hello.
I have Birt Web application (BirtViewer, if I'm not mistaken) installed on my Weblogic server.
I can access reports by URL. That is fine.

Actually I only need to generated PDF, so I try to use Birt API (without viewer).
According to this example I create and deploy a servlet with all those JARs under WEB-INF/lib.

When I try to access this servlet it falls down with:
java.lang.OutOfMemoryError: allocLargeObjectOrArray: [C, size 1073741840

My questions are:
1. Is it really trying to allocate ~1Gb size object? What is it?
2. Why BirtViewer is generating the same report on the same server with no errors?
3. What memory consumption should I expect when it comes to generating large reports?

Thanks.
Birt 4.3, WebLogic 10.3.5


[app:BirtTestServlet module:BirtTestServlet.war path:/birtservlet spec-version:2.5]] Root cause of ServletException.
java.lang.OutOfMemoryError: allocLargeObjectOrArray: [C, size 1073741840
	at java.lang.reflect.Array.newArray(Native Method)
	at java.lang.reflect.Array.newInstance(Array.java:52)
	at oracle.jdbc.driver.BufferCache.get(BufferCache.java:229)
	at oracle.jdbc.driver.PhysicalConnection.getCharBuffer(PhysicalConnection.java:12333)

[Updated on: Fri, 04 October 2013 10:35]

Report message to a moderator

Re: BirtViewer - ok, Birt API - OutOfMemory [message #1128062 is a reply to message #1125426] Mon, 07 October 2013 05:45 Go to previous messageGo to next message
ILya Cyclone is currently offline ILya Cyclone
Messages: 13
Registered: June 2013
Junior Member
Anybody here at all?
Re: BirtViewer - ok, Birt API - OutOfMemory [message #1129072 is a reply to message #1128062] Tue, 08 October 2013 04:58 Go to previous message
donino donino is currently offline donino donino
Messages: 160
Registered: July 2011
Senior Member
The main difference between the example you mentionned and the WebViewer, is by default the WebViewer is processing a report in two tasks:
- Run task => Generating a rptdocument
- Render task => Generating an output from a rptdocument

In your example, we make use of a single task:

IRunAndRenderTask task = birtReportEngine.createRunAndRenderTask( design );

Try to replace this with two tasks: IRunTask and IRenderTask, as described here


Previous Topic:Global Variables not working in Web Viewer
Next Topic:Birt Parameter Error
Goto Forum:
  


Current Time: Sun Apr 20 17:57:18 EDT 2014

Powered by FUDForum. Page generated in 0.02375 seconds