przemekwi444 Posted March 22, 2017 Share Posted March 22, 2017 Hello, I have Jasperreports server on Tomcat (REST v2 web service) and when I generate report for approx. 500 records, server get stuck. Reason of this is heap overflow (I attach plot obtained by Visual VM). After using Eclipse Memory Analyzer, I have two problems suspect: One instance of "org.apache.catalina.session.StandardManager" loaded by "java.net.URLClassLoader @ 0xb720c558" occupies 953 430 520 (74,78%) bytes. The memory is accumulated in one instance of "java.util.concurrent.ConcurrentHashMap$Node[]" loaded by "<system class loader>".1143 instances of "net.sf.jasperreports.renderers.SimpleDataRenderer", loaded by "org.apache.catalina.loader.WebappClassLoader @ 0xb79a3710" occupy 135 271 064 (10,61%) bytes. These instances are referenced from one instance of "java.util.concurrent.ConcurrentHashMap$Node[]", loaded by "<system class loader>"Where the first one is much more serious (it occupy 7 times more heap).Do you have any ideas how to solve it? Link to comment Share on other sites More sharing options...
hozawa Posted March 22, 2017 Share Posted March 22, 2017 JasperReports Server requires at least 4GB of memory and the recommendation is 8GB+.For your graph, it looks like you only have 2GB. Recommend that you increase your heap size.Take a look at JasperReports Server installation guide - System Requirements.http://community.jaspersoft.com/documentation/tibco-jasperreports-server-installation-guide/v630/system-requirements Link to comment Share on other sites More sharing options...
przemekwi444 Posted March 24, 2017 Author Share Posted March 24, 2017 Thank you for answer but unfortunately, this is not a solution of my problem: after increasing heap size (Approx. 16 GB), heap plot look like below and server gets stuck. Link to comment Share on other sites More sharing options...
przemekwi444 Posted April 3, 2017 Author Share Posted April 3, 2017 The problem is still unsolved but the reason might be "CMS Old Gen" Memory Pool. If anybody has ideas, I will be thankful for hint because this case is urgent. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now