升級到 Zimbra 6.0.2 zmmailboxdctl service 一直啟動失敗...?

今天在晚上的時候花了點時間把原本Zimbra 5.0.18 的伺服器升級到最新的Zimbra 6.0.2 版, 升級過程是沒什麼大問題, 不過在啟動的時候老是出現錯誤...

mailbox 一直無法啟動 :(

antispam                Running
antivirus               Running
imapproxy               Running
ldap                    Running
logger                  Running
mailbox                 Stopped
                zmmailboxdctl is not running.
memcached               Running
mta                     Running
snmp                    Running
spell                   Running
stats                   Running

查看/var/log/message 一直看不出哪裡有問題, 後來找到了 /opt/zimbra/log/zmmailboxd.out , 並看了它的內容發現許多Java不能啟動的錯誤訊息

Could not reserve enough space for object heap
Could not create the Java virtual machine.
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
Error occurred during initialization of VM

到網路上找到一篇的解決方法, 在此記錄一下, 只要執行以下命令後 zmmailboxdctl就可以正常啟用了

su - zimbra
zmlocalconfig -e mailboxd_java_heap_memory_percent=30
zmcontrol stop
zmcontrol start

參考 : [SOLVED] zmmailboxd won't start after adding memory