There have been several posts about problems with wildfire on VPS setups. I’'ve followed most of the tips found in the various forum to no avail. Among the things I have tried are
a) setting INSTALL4J_ADD_VM_PARAMS=’’-Xms8m -Xmx16m’’
b) overrding INSTALL4J_JAVA_HOME_OVERRIDE=/usr/lib/jvm/jre-1.5.0_06-sun
and even
c) commenting out exit 83 and adding the $app_home variable
None of those helped and they seemed really voodoo anyway since the physical memory size shouldn’'t be an issue here and the problem seemed rooted in Wildfi having difficulty allocating memory for the JVM in the first place. BTW, I am using the standalone version with JRE.
Finally, my friendly VPS tech support pointed out that there is this .hotspotrc file that sets the heap size found in the directories that allow java to run (!?). I guess this is a VPS deal. I copied a .hotspotrc file into /opt/wildfire/bin and into /opt/wildfire/jre/bin and then tried to run /opt/wildfire/bin/wildfire again.
There was more success this time. It looked like it found the right JVM right away and it passed the initial test that was causing it to hang before. However when I do ./wildfire start, I get a new problem as reported in nohup.out.
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
java.io.IOException: java.io.IOException: Cannot allocate memory
at java.lang.UNIXProcess.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at com.install4j.runtime.FirstRun.firstRun(Unknown Source)
at com.install4j.runtime.FirstRun.checkFirstRun(Unknown Source)
at com.install4j.runtime.Launcher.main(Unknown Source)
Error occurred during initialization of VM
Could not reserve enough space for code cache
Error occurred during initialization of VM
Could not reserve enough space for code cache
–
Anyone have any ideas?
Seems like VPS are getting quite popular these days, would be great to get some real insights as to what is actually wrong here.
Best and TIA