Jump to content
We've recently updated our Privacy Statement, available here ×

JRSwapFile is not used


jadey

Recommended Posts

Hi there,
An excellent post mentions the possibility of using virtualization for resolving the problem of running out of memory when generating large reports.

So I modified my code slightly in order to implement this solution.
But i did not really feel that this file is used because it is created and remains at 0 kb until the application crashes with a nasty OutOfMemoryError. I like to know why.
Thank you all for your contributions.

Code:


Post Edited by jadey at 03/30/2011 16:02
Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

For those who might be affected by this issue. The problem actually comes from the variable <<Ignore pagination>> set to  TRUE, which was on my reports, and the fact is that I export to XLS format. I guess jasperreport interpreted the data on a single page and continued to write in memory instead of using the swap file. I now find myself with another issue. Who will be on a new post.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...