I am trying to install zimbra server on a low spec virtual machine running ubuntu 10.04. I do meet the requirements as documented here (1 GB RAM/5 GB free disk space).
I got the virtual machine specifically for this purpose, so can install anything that helps to run zimbra.
The error I am getting is this:
zimbra@cloud:~$ bin/zmcontrol start
Could not create the Java virtual machine.
I am pretty sure it is something to do with not having enough memory for the java virtual machine - but I don't know how to reduce the requirement, or how to free up memory on the system.
Has anyone got zimbra to work on 1GB RAM? How can I do this?
Edit: more details...
Limit required memory to 32 MB and java works
billy@cloud:~$ java -Xmx32m -version
java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.10) (6b20-1.9.10-0ubuntu1~10.04.2)
OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)
Limit required memory to 256 MB and java does not work
billy@cloud:~$ java -Xmx256m -version
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
Seems the crux of the issue is that OpenVZ reports the physical machine's memory to Java, when it would be more appropriate to report the virtual machine's memory allocation. This leads to the Java Virtual Machines requesting more memory than is available on the virtual machine.
Examining the beancounters allows you to identify this issue. In my case, I was failing on the
privvmpages
. My limit is 262144 (4k pages) which is approximately equal to 1GB. The kmemsize is reported as 2147483646 which is approximately equal to 2GB.I have not fully solved the issue yet, as I need to do further memory related tweaks to zimbra - but I have identified that this is the cause of my problem, and that the little tweaking I have done has allowed me to progress with my installation (although I do still run out of memory a little further down the line still).
I went about tweaking memory along the lines of this:
and this
And to get zimbra to even run the
zmlocalconfig
, I removedzimbra
from/etc/init.d/
and just ran it manually after funning the config commands.Hope this is helpful to someone else.
I know this does not directly answer your question and I have not used it myself, but if you are evaluating Zimbra perhaps it would be worthwhile to give Zimbra's VM appliance a shot.