Jump to content
Changes to the Jaspersoft community edition download ×

Jasper 6.4 Memory Leak


Recommended Posts

Contrary to suggestion https://community.jaspersoft.com/wiki/setting-maxmetaspacesize-java-8  max metaspace size was set to 512Mb, and product regularly crashes. Having analyzed heap dumps, conclusion was made that jasper reports are main suspects, beacuse OutOfMemoryError had always been thrown while generating JasperReports.

Metaspace was monitored in test environments - there is steady increase in used memory when generating many reports and the memory is not freed what probably resulted in crash.

Could you give any suggestion how the problem shuold be resolved? By now I tried to change language from 'groovy' to 'java' but it did not help. Many other advices concern earlier versions of Java (currently used is Java 8, templates of Jasper reports format is 'jrxml').

Thanks in advance! 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

restart the service might release the memory maybe?

theres a report that couldnt be generate and will take up your memory everytime u try to load it. the characteristic is the report wont load. in my case the cause is when the report try to load the template size / width of a box and is failing. the report wait to be load but the template never be ready. so i need to restart the service and make another report with another element. things be fine afterthat.

Link to comment
Share on other sites

we surely can just restart service, but it would not be considered as full solution since the memory still will be leaking. Somehow dead classes DelegatingClassLoader and CallSiteClassLoader keep appearing in jmap -clsstats report and used metaspace memory inflating.

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