Thread: I give up
View Single Post
  #7 (permalink)  
Old 11-23-2011, 07:45 AM
hvwees hvwees is offline
Starter Member
 
Posts: 1
Default

Quote:
Originally Posted by friedmar View Post
Hello,

if it is a VPS System have in mind that Zimbra calculates its memory needs on the real memory. Also Java calculates on the real memory of the host system, not the VPS memory.
I also run zimbra on a VPS and had big trouble getting it to work.

For example:

Code:
/opt/zimbra/bin/zmlocalconfig
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
Found this post and went searching in the memory stuff of the VPS.

What I did to solve this issue is the folowing:

cat /proc/meminfo > /etc/fake_meminfo

Edited the lines "MemTotal:" and "LowTotal:" to my actual memory that my VPS has.

Then I did:
mount --bind /etc/fake_meminfo /proc/meminfo

Now I don't get these java errors anymore.

I admit it's a dirty trick, but it works.

Hope this helps other VPS users aswell..
Reply With Quote