Results 1 to 4 of 4

Thread: Zimbra JVM issue with openvz

  1. #1
    rambeats is offline Junior Member
    Join Date
    Nov 2009
    Posts
    9
    Rep Power
    5

    Default Zimbra JVM issue with openvz

    Hi,

    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
    Location
    Vannes, France
    Posts
    23,582
    Rep Power
    57

    Default

    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.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    undersys is offline Active Member
    Join Date
    Jun 2010
    Posts
    30
    Rep Power
    5

    Default

    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 :-
    USE AT YOUR RISK!

    Code:
    # 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/amavisd.conf.in
    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
    pixelplumber is offline Active Member
    Join Date
    Mar 2007
    Posts
    45
    Rep Power
    8

    Default

    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.

    Cheers.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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, 10:03 PM
  3. Replies: 8
    Last Post: 01-20-2009, 01:06 PM
  4. Cleanup after many upgrades
    By tobru in forum Installation
    Replies: 1
    Last Post: 12-23-2007, 09:21 AM
  5. Replies: 22
    Last Post: 12-02-2007, 05: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
  •