java.lang.OutOfMemoryError: Java heap space [message #505462] |
Thu, 31 December 2009 01:54 |
henry chan 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 |
|
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 #505970 is a reply to message #505844] |
Tue, 05 January 2010 16:36 |
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02692 seconds