manojdrana Posted July 5, 2013 Share Posted July 5, 2013 Hello,I installed Jasper Server Community version on 32 Bit Windows xp server. When i am trying to start service, its not starting. I checked the apache/logs. I am seeing this error:[2013-07-05 11:11:06] [info] Commons Daemon procrun finished.[2013-07-05 11:13:15] [info] Commons Daemon procrun (1.0.2.0) started[2013-07-05 11:13:15] [info] Running Service...[2013-07-05 11:13:15] [info] Starting service...[2013-07-05 11:13:15] [info] Error occurred during initialization of VM[2013-07-05 11:13:15] [info] Could not reserve enough space for object heap[2013-07-05 11:13:15] [info] [2013-07-05 11:13:15] [457 javajni.c] [error] CreateJavaVM Failed[2013-07-05 11:13:15] [991 prunsrv.c] [error] Failed initializing java C:PROGRA~1JASPER~1.2APACHE~1bintomcat-juli.jar;C:PROGRA~1JASPER~1.2APACHE~1bintomcat-juli.jar;C:PROGRA~1JASPER~1.2APACHE~1binbootstrap.jar[2013-07-05 11:13:15] [1280 prunsrv.c] [error] ServiceStart returned 2[2013-07-05 11:13:15] [info] Run service finished.[2013-07-05 11:13:15] [info] Commons Daemon procrun finished. I thought its 32 bit RAM size is creating the problem so i changed JAVA_OPTS values in js-export.bat, js-import.bat and in cataling.bat. I tried with the lowest -xms,-xms and -xx:MaxPermSize but still error is coming. does any have have any idea about the solution? I really appreciate your help. Thanks,Manoj Rana Link to comment Share on other sites More sharing options...
Yuri Savochenko Posted July 8, 2013 Share Posted July 8, 2013 This is because tomcat is deployed as Windows service, and your java_opts can be overriden by service properties. Try something like this:http://www.12robots.com/index.cfm/2010/10/8/Giving-more-memory-to-the-Tomcat-Service-in-Windows Link to comment Share on other sites More sharing options...
djohnson53 Posted August 15, 2013 Share Posted August 15, 2013 Take a look at this Topic: JasperReports Server Performance.And, in particular: Hardware Requirements for JasperReports Server. Link to comment Share on other sites More sharing options...
ken.jin Posted August 21, 2016 Share Posted August 21, 2016 It maybe your RAM is not enought to creat JVM. So you need to set your java memory in tomcats smallers.Open command line, cd C:Jaspersoftjasperreports-server-cp-5.6.0apache-tomcatbinGoto C:Jaspersoftjasperreports-server-cp-5.6.0apache-tomcatbin you can see tomcat7w or tomcat6w (depend on your Tomcat version).In command line (see in below picture)jasperreportstomcat propertise show up,in java tab, Java Options, you will see-Xms1024M-Xmx2045M-Xss2M-Dcatalina.base=C:JASPER~1JASPER~1.0APACHE~1-Dcatalina.home=C:JASPER~1JASPER~1.0APACHE~1-Djava.endorsed.dirs=C:JASPER~1JASPER~1.0APACHE~1endorsed-XX:PermSize=128m-XX:MaxPermSize=256m-XX:+UseConcMarkSweepGC-XX:+CMSClassUnloadingEnabled Adjust -Xms1024M and -Xmx2045M with smaller value (may be 512 and 1024) then apply.After that goto services and restart jasperreportstomcat 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