I see lots of posts about the "java.lang.OutOfMemoryError: Java heap space" issue, and am running into it myself. I am using the virtualizer as suggested here: Code: http://www.jasperforge.org/jaspersoft/opensource/business_intelligence/jasperreports/faq.html#FAQ13 This is how I initalize it in my code (the numbers might be too high/low, but I'm playing with the buffer sizes etc. at the moment): Code:[code] JRSwapFileVirtualizer virtualizer = new JRSwapFileVirtualizer(4, new JRSwapFile(configLocation + "tmp/", 16384, 8192), true); Since I am running it through Apache Tomcat, I have also set the memory quite high: Code:[code] JAVA_OPTS="-Xms2048M -Xmx2048M" CATALINA_OPTS="-Xms2048M -Xmx2048M" I can create the report (> 2000 pages) in about 30 seconds, and can also export it to PDF in about the same amount of time (both of which are acceptable). My problem is that when I try to export it to either XLS or CSV -- then the out of memory error shows up. Here's the question -- is this because the virtualizer actually works on generated pages in the final document? I am using paging for the HTML and PDF reports, but when it comes to the XLS and CSV I ignore the pagination with: Code:[code] params.put("IS_IGNORE_PAGINATION", "true"«»); This essentially makes the report one giant page, right? Is that what is causing the out of memory issue? If so, is there a way around it? And if not, is there something else that I am missing? I'm kind of stumped here ... Thanks. Post edited by: bob4apples, at: 2008/06/10 20:24