Jump to content

Issue connected with loading temp classes while exporting data via JasperReports


Recommended Posts

My name is Lyudvig. I'm java developer and we are using JasperReports to export big data to PDF, XLS, XLSX and HTML. Below shortly I will describe how we are  doing it  and describe a problem that we have with JRClassLoader.

As I have written above we are exporting big tables. They are very different and because of that we can't use static compiled templates (.jasper) and have to create jasper template dynamically. We are adding fields, text fields to JasperDesign using java. 

Recently we have discovered that after several exports we get OutOfMemory Error for PermGen space. 

After application profiling we have find out that when exporting data using JasperReports, for each export JRClassLoader loads new temp classes and they are never unloaded. See attached screenshot. So every time the loaded classes count is rising and finally JVM throws an out of memory error.screanShot.png.cfbc57d592d0efa5240b25ab4c045f4a.png

Link to comment
Share on other sites

  • 6 months later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • 5 months later...

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