Jump to content
We've recently updated our Privacy Statement, available here ×

COULD NOT RESERVE ENOUGH SPACE FOR OBJECT HEAP


manojdrana

Recommended Posts

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

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 month later...
  • 3 years later...

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

index1(8).png.18cc444ea091ba6182ecd086387d31ff.png

Goto 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)

index2(10).png.705a92e1247dacc5e7aaab59a41050d7.png

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

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