iReport java heap space
I'm working on iReport 2.0.4,and when I put an sql statement to get the data i start to get this error :
Error filling print... java.lang.OutOfMemoryError: GC overhead limit exceeded null
java.lang.OutOfMemoryErro开发者_如何学JAVAr: GC overhead limit exceeded
Print was not filled. Try using an EmptyDataSource...
and Error: Java heap space.
Does anybody have any clue on how I can solve this? Any help is appreciated.
open
iReportInstallationDir/etc/ireport.conf
change -J-Xms
& -J-Xmx
value according to your system resources
default_options="--branding ireport -J-Xms256m -J-Xmx512m -J-Dorg.netbeans.ProxyClassLoader.level=1000"
Solution.. I Using ireport 5.6.0 tools and my report name is OPTAB.jrxml.
- Right click on OPTAB in Report Inspector.
- select Edit query.
3.Type "select 1 from dual" in Report query.
4.press Ok.
now see field in your Report Inspector it only contain 1.
Now run you report.
I hope This will Help you.
In my case, the problem margins were established for pages, by reducing the size of the first sheet solved the problem.
I got the same error with JDK 1.6 when i use Times New Roman font. With JDK 1.7 fix my problem.
精彩评论