I am having a strange problem that did not appear until we hit production. I had an OutOfMemory error some time ago in production with reports, which I addressed by using a JRConcurrentSwapFile. All local and QA testing showed this was an improvement. Now, in production I have this scenario: 1. A jrxml is created by the admin using our UI. 2. The report is executed. 3. According to the logs, one of these reports was processing about 2.4 million pages. The report is only 4 pages long. 4. Obviously, the swap file ends up filling up and OutOfMemory occurs again. 5. If I create a new jrxml with exactly the same contents, the report runs normally, resulting in 4 pages. Note that the jrxml and the data are identical in case #3 and case #5. 6. If I then run case #3 again (the original jrxml) the same thing occurs - 2.4 million pages and OutOfMemory. I cannot figure this one out. I cannot tell if this is something going on with the FileChannel in the JRConcurrentSwapFile, something to do with the Csv or Pdf exporter (I produce both reports) or if this is something else entirely. Now I am not sure if my OutOfMemory issue was due to (as I originally thought) a large amount of data/pages for the admin or if it was this problem (but I did not notice it because I was not looking at the logs for the swap file usage). This has to have happened to someone else. Hopefully, I just missed the discussion in the threads. Any help is definitely appreciated. I have included the code I use for creating the swap file below, just in case that is the problem. Code: Some further testing has shown me it is NOT the swap file that is in any way the culprit. With the swap file turned off, it does the same thing with resident memory. So, it appears to be some condition - that is reproducable - that has the JasperFillManager convinced there are an infinite number of pages. Post Edited by Todd Greanier at 11/12/08 16:11 Post Edited by Todd Greanier at 11/12/08 21:49