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

.jrxml or .jasper?


bobg1will

Recommended Posts

Hello,

 

I'm running a web app that submits a request to a servlet which serves up a jasper report.  The servlet is running on tomcat.

Everything was going great until i started some load testing.  Tomcat is not releasing the memory used by the servlet to generate a report.

I have stripped the servlet down to the bare bones -

  - JasperDesign = load jrxml file

  - Replace certain values in the sql query obtained from the JasperDesign object

  - Compile the JasperDesign object

  - Use a JRHtmlExporter to export the report.

Is this the most efficient way to do this?  I realise the JasperDesign object is loaded into memory, is there a way to have the memory it uses recycled after the report has been printed?

I'm really struggling with this and would appreciate any help suggestions?  I can post my code if required.

Thanks,

Bobby

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