Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space [message #505462] Thu, 31 December 2009 01:54 Go to next message
henry chan is currently offline henry chanFriend
Messages: 2
Registered: October 2009
Junior Member
Hi all, I'm using BIRT 2.5.0 on Tomcat 5.5.25 and I encountered out of memory error when generating a large report (> 15000 records) with nested tables. The report output format is CSV.

The tomcat server is running with the following parameters:
CATALINA_OPTS
-Xms512M
-Xmx1024M

JAVA_OPTS
-XX:+HeapDumpOnOutOfMemoryError
-XX:+PrintGCDetails
-XX:+CMSClassUnloadingEnabled
-XX:+UseConcMarkSweepGC
-XX:MaxPermSize=256m

The child table will be continuously append to the end of the parent row in the example given below.

Parent Table
COL 1 COL 2 COL 3
1 X A
2 Y B
3 Z C

Child Table
COL 1 COL 2
1 W
1 E
2 Z

where Parent Table "COL 1" = Child Table "COL 1"

CSV Output
1, X, A, 1, W, 1, E
2, Y, B, 2, Z
3, Z, C


Please kindly help! Thanks alot in advance!
And happy new year to you all!

Henry
Re: java.lang.OutOfMemoryError: Java heap space [message #505732 is a reply to message #505462] Mon, 04 January 2010 17:29 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Henry,

Does increasing the MaxPermSize to 512 help? Also any chance you could
try this with 2.5.1?

Jason

henry chan wrote:
> Hi all, I'm using BIRT 2.5.0 on Tomcat 5.5.25 and I encountered out of
> memory error when generating a large report (> 15000 records) with
> nested tables. The report output format is CSV.
>
> The tomcat server is running with the following parameters:
> CATALINA_OPTS
> -Xms512M -Xmx1024M
>
> JAVA_OPTS
> -XX:+HeapDumpOnOutOfMemoryError -XX:+PrintGCDetails
> -XX:+CMSClassUnloadingEnabled
> -XX:+UseConcMarkSweepGC
> -XX:MaxPermSize=256m
>
> The child table will be continuously append to the end of the parent row
> in the example given below.
> Parent Table COL 1 COL 2 COL 3
> 1 X A
> 2 Y B
> 3 Z C
>
> Child Table COL 1 COL 2
> 1 W 1 E
> 2 Z
>
> where Parent Table "COL 1" = Child Table "COL 1"
>
> CSV Output
> 1, X, A, 1, W, 1, E
> 2, Y, B, 2, Z
> 3, Z, C
>
>
> Please kindly help! Thanks alot in advance! And happy new year to you all!
>
> Henry
Re: java.lang.OutOfMemoryError: Java heap space [message #505844 is a reply to message #505732] Tue, 05 January 2010 10:28 Go to previous messageGo to next message
henry chan is currently offline henry chanFriend
Messages: 2
Registered: October 2009
Junior Member
Jason,

I have tried but still doesnt solve the problem. I make a heapdump. When I look at it, there are lots of objects in an arraylist, the whole table content. I guess is it because of I'm generating the whole report into a text file and without pagination.

I use the JConsole and try to perform GC. I ran the "Leak suspect" report from Eclipse Memory Analyzer which gives:

One instance of " org.eclipse.birt.report.engine.executor.OnPageBreakLayoutPag eHandle" loaded by "org.eclipse.birt.report.engine" occupies 1,041,821,312 (96.13%) bytes. The memory is accumulated in one instance of "java.lang.Object[]" loaded by "<system class loader>".Keywords
java.lang.Object[]
org.eclipse.birt.report.engine
org.eclipse.birt.report.engine.executor.OnPageBreakLayoutPag eHandle


However I couldn't upload anything here, what information can I provide to solve the problem?


Thank you very much!

Henry
Re: java.lang.OutOfMemoryError: Java heap space [message #505970 is a reply to message #505844] Tue, 05 January 2010 16:36 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Henry,

Can you open a bugzilla entry and post the data from the Eclipse Memory
Analyzer? Also post the report. I assume you have no way of posting
the data.

Jason

henry chan wrote:
> Jason,
>
> I have tried but still doesnt solve the problem. I make a heapdump. When
> I look at it, there are lots of objects in an arraylist, the whole table
> content. I guess is it because of I'm generating the whole report into a
> text file and without pagination.
>
> I use the JConsole and try to perform GC. I ran the "Leak suspect"
> report from Eclipse Memory Analyzer which gives:
>
> One instance of "
> org.eclipse.birt.report.engine.executor.OnPageBreakLayoutPag eHandle"
> loaded by "org.eclipse.birt.report.engine" occupies 1,041,821,312
> (96.13%) bytes. The memory is accumulated in one instance of
> "java.lang.Object[]" loaded by "<system class loader>".Keywords
> java.lang.Object[]
> org.eclipse.birt.report.engine
> org.eclipse.birt.report.engine.executor.OnPageBreakLayoutPag eHandle
>
>
> However I couldn't upload anything here, what information can I provide
> to solve the problem?
>
>
> Thank you very much!
>
> Henry
Previous Topic:SQLite Problem with Birt
Next Topic:Wizard offerres me no service parameter from the WSDL
Goto Forum:
  


Current Time: Mon Sep 23 04:21:40 GMT 2024

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

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

Back to the top