Results 1 to 4 of 4

Thread: Zimbra JVM issue with openvz

Hybrid View

  1. #1
    Join Date
    Nov 2009
    Rep Power

    Default Zimbra JVM issue with openvz


    I have a 64bit Centos VPS hosted on openvz. I could install zimbra without any error. But when I try to start/stop zimbra using zmcontrol start, Getting a JVM error below,

    Could not create the Java virtual machine.
    mkdir : No such file or directory at /opt/zimbra/bin/zmcontrol line 35

    What would be the reason? Has zimbra supports openvz?. Is this related with privvmpages size?
    Please help me.

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Vannes, France
    Rep Power


    Quote Originally Posted by rambeats View Post
    What would be the reason?
    Most likely a lack of RAM (search the forums for details)

    Quote Originally Posted by rambeats View Post
    Has zimbra supports openvz?.
    No it doesn't, that's not a supported platform and you'll find that there are problems using it. You may get it to work, you may not.


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    Join Date
    Jun 2010
    Rep Power


    You can get it to work... to an extent.
    I now only have issues with starting and stopping. Some times in need to start each part manually. overall stability has been fine.

    OpenVZ is crap as it can not allocate contiguous memory segments, Java expects this. Hence why ive got very small Xmx and Xmx sizes.
    Unfortunately I need to work in a limited budget for my VPS.

    This is for a very small deployment (under 5 users)
    Here is all the settings I changed :-

    # zmlocalconfig -e mailboxd_java_options=”-server -Djava.awt.headless=true -XX:+UseConcMarkSweepGC -XX:NewRatio=2 -XX:PermSize=128m \
    -XX:MaxPermSize=128m -XX:SoftRefLRUPolicyMSPerMB=1 -Xms128m -Xmx128m”
    # zmlocalconfig -e tomcat_java_heap_memory_percent=5
    # zmlocalconfig -e zmmtaconfig_interval=3600
    # zmlocalconfig -e zmstat_interval=300
    # zmlocalconfig -e mailboxd_java_heap_memory_percent=5
    # zmlocalconfig -e mailboxd_java_heap_new_size_percent=5
    # zmlocalconfig -e ldap_common_threads=16
    # zmlocalconfig -e ldap_common_toolthreads=8
    # zmlocalconfig -e ldap_db_cachesize=50000
    # zmlocalconfig -e ldap_db_idlcachesize=50000
    # zmlocalconfig -e ldap_db_dncachesize=0
    # zmlocalconfig -e zimbra_zmjava_options=”-Xms128m -Xmx128m”
    # zmprov mcf zimbraMessageCacheSize 5000

    Edit the following files
    # nano /opt/zimbra/conf/
    Edit the folowing
    “$max_servers =10″ and set it to “$max_servers =2″

    Edit/add the following
    “innodb_buffer_pool_size =” to “innodb_buffer_pool_size = 144245094″
    “thread_cache = ” to “thread_cache = 5″
    “max_connections = ” to “max_connections = 15″

  4. #4
    Join Date
    Mar 2007
    Rep Power


    we've run 32bit zimbra on a centos 4 vps for a few years, the biggest issue we've had is that while you may allocate 50% of your system memory to the container, the JVM reports back the total system memory when it runs. So in a lot of cases it allocates far more memory to itself than the container actually supports.

    undersys is right, setting the -Xms -Xmx switches sufficiently low fixed almost all of the problems we had running it. That and looking for failcnts in the user bean counters. So it can work, and pretty well too.

    Having said that when we move to 7.x it will probably be 64bit in a KVM virtual machine. OpenVZ seems to have stagnated (athough they will probably pick up again after RHEL6 is released) and lxc may end up becoming the defacto container solution in another few years anyway.


Similar Threads

  1. Migrate Zimbra Server to VMware
    By Oasy in forum Administrators
    Replies: 11
    Last Post: 07-14-2010, 07:13 AM
  2. [SOLVED] Postfix unavailable - queue down
    By pmona in forum Administrators
    Replies: 20
    Last Post: 01-21-2010, 09:03 PM
  3. Replies: 8
    Last Post: 01-20-2009, 12:06 PM
  4. Cleanup after many upgrades
    By tobru in forum Installation
    Replies: 1
    Last Post: 12-23-2007, 08:21 AM
  5. Replies: 22
    Last Post: 12-02-2007, 04:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts