Savvion Error - "Could not reserve enough space for object heap"
Have you ever encountered the following error after installing Savvion -
Error occured during initialization of VM
could not reserve enough space for object heap
Could not create the Java virtual Machine
Well, I did. I was installing Savvion Business Manager 7.x over Pramati and Oracle. After installation and runnig the DB Configuration script (If you need help in step by step installation check out the video series How to Install Savvion) I started getting the above error when I tried to start the server.
I started checking out the memory configuration settings and realized that savvion is already allocating 1024M Xms memory then why is the error coming?
I thought may be I had less memory. I had 2 GB RAM on the machine. I Added 2 GB More. Still the same error!
After a few hours of checking out I realized that while installing Oracle, Oracle had added an entry for JDK 1.4 in my classpath because of which the java command was calling the version 4.0 java and not able to allocate memory. This is strange since Savvion ships a 1.6 JDK along with the product and references it in the classpath as well!
Even after removing it from classpath, I would still get the same error!
The next try that I did was install a version 6 JDK on my machine. Fortunately it worked.
Installing a JDK 6 again fixes the problem.
The roort cause analysis seems to be that the older Java 4 probably had some registry entires which were conflicting. On installing JDK 6.0 those got overwritten and memory management worked.
Hope this is helpul for someone.