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

Minimize memory usage


stradale

Recommended Posts

I'm having memory problems when generating my (pdf) reports.

I'm using 40 subreports to generate a pdf file with about 5 to 6 pages.

Memory wise, a single report takes up to 50MB and creates 300.000 instances (50.000 char[], 50.000 java.lang.String, 30.000 java.Util.HashMap$Entry, etc).

If 10 reports are simultaneously generated (and this happens a lot), this goes up to ~200MB (2.000.000 instances) and, memory errors start to ocurr.

What is the best approach to solve this problem?

JRFileVirtualizer doesn't seem to be the solution as the final PDF has less than 1MB.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...