systemsam Posted June 23, 2010 Share Posted June 23, 2010 I have a JasperServer (ver 3.7) and it has crashed a couple times on me now. I'll warn you that I'm not a java/tomcat expert by any means but I've gotten this far. I got the following error in my log:2010-06-23 00:39:11,378 ERROR [jasperserver],http-80-Processor42:253 - Servlet.service() for servlet jasperserver threw exception java.lang.OutOfMemoryError: Java heap spaceSince that time the server we completely un-responsive until I restarted it. I've included the error prior to the heap message - it starts like this (and there are several of them) but its from an hour before the crash so I'm not thinking its the issue. 2010-06-22 23:22:47,035 ERROR JSErrorPage_jsp,http-80-Processor49:327 - com.jaspersoft.jasperserver.api.JSException: jsexception.jasperprint.not.found at com.jaspersoft.jasperserver.war.control.ReportImageController.handleRequest(ReportImageController.java:97) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)Based on forum posts, etc I've adjusted my memory to setting in setenv.sh to these (I assume this is the right place for a bundled install???) JAVA_HOME=/opt/jasperserver-ce-3.7.0/javaJRE_HOME=/opt/jasperserver-ce-3.7.0/javaJAVA_OPTS="$JAVA_OPTS -Xms768m -Xmx768m -XX:PermSize=64m -XX:MaxPermSize=265m "export JAVA_HOMEexport JRE_HOMEexport JAVA_OPTS Which I thought might solve the problem. This is a x64 box with 4gb of Ram. I've read little bits about the garbage collection but haven't test any of those settings. 1) Is there any recommendation to extended logging that might help us understand the root cause of this issue?2) Any words of advice on the memory setting (ie - just crank it up - which I'm completely okay doing - whart are accceptable maxes?) Its not a terribly high traffic server accept at shift change - could be 20 people running reports. 3) I'm getting ready to configure this in a redundant setup (using a load balancer in front of them with session persistance) but has anyone created a "cluster" of sorts they would be willing to expound on? Thanks for your help! Link to comment Share on other sites More sharing options...
ramnik Posted June 23, 2010 Share Posted June 23, 2010 The issue is Out Of Memory 1. You can increase the memory to high -> e.g. 1024m Or 2048m 2. The jasperpint obejct not found error occurs when it is looking for some running report object and it cannot find it bcaz server is already got java.heap space error So, basic issue is :- low memory settings ..making it 2048m or even 1024 m will make your server work ok. Ramnik KaurSenior QA Engineer Link to comment Share on other sites More sharing options...
systemsam Posted June 23, 2010 Author Share Posted June 23, 2010 Thanks for the quick response.. Just to confirm - I should set the line in my setenv.sh file to thisJAVA_OPTS="$JAVA_OPTS -Xms2048m -Xmx2048m -XX:PermSize=64m -XX:MaxPermSize=265m " Just modifying the Xms and Xmx settings right - are the PermSize's okay? - thanks - Sam Link to comment Share on other sites More sharing options...
ramnik Posted June 23, 2010 Share Posted June 23, 2010 1. Yes .changes in setenv.sh will be helpful2. To be on safer side ..you can increase the limit for permSize to ..you can make them :- 256m and 512m .. Ramnik KaurSenior QA Engineer Link to comment Share on other sites More sharing options...
systemsam Posted June 23, 2010 Author Share Posted June 23, 2010 Thanks for the help RamnikRelated to this - is the garbage collector an important setting for this as well? (per this article)http://www.jaspersoft.com/ibm-jvm-garbage-collection-tuning Link to comment Share on other sites More sharing options...
ramnik Posted June 23, 2010 Share Posted June 23, 2010 You will be able to make your server work Ok by just setting the memory and permGen settings. These are the settings we normally use while testing Jasperserver internally. Ramnik KaurSenior QA Engineer 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