Results 1 to 9 of 9

Thread: Fine tunning on 2 GB RAM with no swap

  1. #1
    adrian15 is offline Member
    Join Date
    Mar 2010
    Posts
    14
    Rep Power
    5

    Default Fine tunning on 2 GB RAM with no swap

    I have just migrated an installation from: zcs-6.0.4_GA_2038.DEBIAN5.20091214191015
    to: zcs-6.0.4_GA_2038.DEBIAN5_64.20091214195434

    .

    Everything is ok except from receiving external emails.
    Once I start the services I can receive external emails for about 5 minutes or so and then it stops receiving external emails and so when you sent an email to my zimbra accounts you get a 554 error.

    I already had this problem in the previous installation and I thought that the solution for this was to uncheck TLS autenthication in MTA tab in general setup.

    But it seems it is not.

    Currently I am using this special setup:
    Code:
    zmlocalconfig -e zmmtaconfig_interval=3600
    zmlocalconfig -e zmstat_interval=15000
    zmlocalconfig -e mailboxd_java_heap_memory_percent=10
    zmlocalconfig -e mailboxd_java_heap_new_size_percent=10
    
    zmlocalconfig -e mailboxd_java_options="-server -Djava.awt.headless=true -XX:+UseConcMarkSweepGC -XX:NewRatio=2 -XX:PermSize=128m \
    -XX:MaxPermSize=128m -XX:SoftRefLRUPolicyMSPerMB=1"
    
    zmlocalconfig -e ldap_common_threads=8
    zmlocalconfig -e ldap_common_toolthreads=4
    zmlocalconfig -e ldap_db_cachesize=5000
    zmlocalconfig -e ldap_db_idlcachesize=5000
    zmlocalconfig -e ldap_db_dncachesize=0
    zmprov mcf zimbraMessageCacheSize 5000
    in order not to have RAM problems.

    I have also disabled antivirus and antispam services.

    Currently there is about 800 MB free RAM out of 2 GB RAM.

    I suppose that the problem comes from the java heap. I suppose that there some java heap settings for some of the zimbra services (apart from the mailboxd setting) but, somehow, it is not documented where they can be changed.

    Here there is my zmdumpenv output (11.22.33.44 is not my ip, domain.com is the domain where the machine is, and zimbra.cumulus.lan is a fake domain that it is resolved by a dns server (bind) which lives in the same machine.

    Code:
     
    ----------------                
    20100328001357                  
    ----------------                
    uid=1002(zimbra) gid=1002(zimbra) grupos=4(adm),5(tty),1002(zimbra),1003(postfix)
    ----------------                                                                 
    Linux myhostname 2.6.24-9-pve #1 SMP PREEMPT Tue Nov 17 09:34:41 CET 2009 x86_64 GNU/Linux                                                                                   
    ----------------                                                                     
    myhostname                                                                              
    ----------------                                                                     
    zimbra.cumulus.lan                                                                   
    ----------------                                                                     
    zimbra.cumulus.lan      A       11.22.33.44                                       
    ----------------                                                                     
    DEBIAN5_64                                                                           
    ----------------                                                                     
    S.ficheros          Tamaño Usado  Disp Uso% Montado en                               
    /dev/simfs             20G  7,8G   13G  39% /                                        
    tmpfs                 5,9G     0  5,9G   0% /lib/init/rw                             
    tmpfs                 5,9G     0  5,9G   0% /dev/shm                                 
    ----------------                                                                     
    lo        Link encap:Local Loopback                                                  
              inet addr:127.0.0.1  Mask:255.0.0.0                                        
              inet6 addr: ::1/128 Scope:Host                                             
              UP LOOPBACK RUNNING  MTU:16436  Metric:1                                   
              RX packets:216264 errors:0 dropped:0 overruns:0 frame:0                    
              TX packets:216264 errors:0 dropped:0 overruns:0 carrier:0                  
              collisions:0 txqueuelen:0                                                  
              RX bytes:68970294 (65.7 MiB)  TX bytes:68970294 (65.7 MiB)                 
    
    venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
              inet addr:127.0.0.1  P-t-P:127.0.0.1  Bcast:0.0.0.0  Mask:255.255.255.255  
              UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1                 
              RX packets:44199 errors:0 dropped:0 overruns:0 frame:0                     
              TX packets:41870 errors:0 dropped:0 overruns:0 carrier:0                   
              collisions:0 txqueuelen:0                                                  
              RX bytes:6906971 (6.5 MiB)  TX bytes:30614271 (29.1 MiB)                   
    
    venet0:0  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
              inet addr:11.22.33.44  P-t-P:11.22.33.44  Bcast:0.0.0.0  Mask:255.255.255.255                                                                             
              UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1                 
    
    ----------------
    /opt/zimbra/bin/zmdumpenv: line 47: rpm: command not found
    ----------------                                          
    total 180                                                 
    lrwxrwxrwx  1 root   root     29 mar 27 20:44 altermime -> /opt/zimbra/altermime-0.3-dev                                                                                  
    drwxr-xr-x  3 root   root   4096 mar 27 20:44 altermime-0.3-dev                      
    lrwxrwxrwx  1 root   root     29 mar 27 20:44 amavisd -> /opt/zimbra/amavisd-new-2.6.4                                                                                    
    drwxr-xr-x  4 root   root   4096 mar 27 20:44 amavisd-new-2.6.4                      
    lrwxrwxrwx  1 root   root     25 mar 27 16:29 aspell -> /opt/zimbra/aspell-0.60.6    
    drwxr-xr-x  2 zimbra zimbra 4096 mar 27 16:28 backup                                 
    lrwxrwxrwx  1 root   root     24 mar 27 20:44 bdb -> /opt/zimbra/bdb-4.7.25.4        
    drwxr-xr-x  6 root   root   4096 mar 27 20:44 bdb-4.7.25.4                           
    drwxr-xr-x  2 root   root   4096 mar 27 20:44 bin                                    
    lrwxrwxrwx  1 root   root     25 mar 27 20:44 clamav -> /opt/zimbra/clamav-0.95.3    
    drwxr-xr-x 10 root   root   4096 mar 27 20:44 clamav-0.95.3                          
    drwxr-xr-x  9 zimbra zimbra 4096 mar 27 21:22 conf                                   
    -rw-------  1 root   root   2284 mar 27 20:46 config.29334                           
    -rw-------  1 root   root   2273 mar 27 16:44 config.8858                            
    drwxr-xr-x  2 root   root   4096 mar 27 20:44 contrib                                
    lrwxrwxrwx  1 root   root     23 mar 27 20:44 curl -> /opt/zimbra/curl-7.19.7        
    drwxr-xr-x  6 root   root   4096 mar 27 20:44 curl-7.19.7                            
    lrwxrwxrwx  1 root   root     32 mar 27 20:44 cyrus-sasl -> /opt/zimbra/cyrus-sasl-2.1.23.3z                                                                              
    drwxr-xr-x  8 root   root   4096 mar 27 20:44 cyrus-sasl-2.1.23.3z                   
    drwxr-xr-x  9 zimbra zimbra 4096 mar 27 20:44 data                                   
    drwxr-xr-x  3 zimbra zimbra 4096 mar 27 21:21 db                                     
    drwxr-xr-x  2 zimbra zimbra 4096 mar 27 20:44 docs                                   
    lrwxrwxrwx  1 root   root     29 mar 27 20:44 dspam -> /opt/zimbra/dspam-3.9.0-BETA4 
    drwxr-xr-x  7 root   root   4096 mar 27 20:44 dspam-3.9.0-BETA4                      
    drwxr-xr-x  2 zimbra zimbra 4096 mar 27 16:29 fbqueue                                
    lrwxrwxrwx  1 root   root     25 mar 27 20:44 heimdal -> /opt/zimbra/heimdal-1.2.1   
    drwxr-xr-x  6 root   root   4096 mar 27 20:44 heimdal-1.2.1                          
    lrwxrwxrwx  1 root   root     24 mar 27 20:45 httpd -> /opt/zimbra/httpd-2.2.14      
    drwxr-xr-x 15 root   root   4096 mar 27 20:45 httpd-2.2.14                           
    drwxr-xr-x  3 zimbra zimbra 4096 mar 27 17:14 index                                  
    lrwxrwxrwx  1 root   root     23 mar 27 20:44 java -> /opt/zimbra/jdk1.6.0_16        
    drwxr-xr-x  8 root   root   4096 mar 27 20:44 jdk1.6.0_16                            
    lrwxrwxrwx  1 root   root     27 mar 27 20:45 jetty -> /opt/zimbra/jetty-6.1.22.z6   
    drwxr-xr-x 11 root   root   4096 mar 27 20:44 jetty-6.1.22.z6                        
    drwxr-xr-x  4 root   root   4096 mar 27 20:44 lib                                    
    drwxr-xr-x  4 root   root   4096 mar 27 20:44 libexec                                
    lrwxrwxrwx  1 root   root     26 mar 27 20:44 libtool -> /opt/zimbra/libtool-2.2.6a  
    drwxr-xr-x  4 root   root   4096 mar 27 20:44 libtool-2.2.6a                         
    drwxr-xr-x  3 zimbra zimbra 4096 mar 28 00:12 log                                    
    drwxr-xr-x  3 zimbra zimbra 4096 mar 27 16:28 logger                                 
    lrwxrwxrwx  1 root   root     27 mar 27 20:45 mailboxd -> /opt/zimbra/jetty-6.1.22.z6
    lrwxrwxrwx  1 root   root     59 mar 27 20:45 mysql -> /opt/zimbra/mysql-standard-5.0.87-pc-linux-gnu-i686-glibc23                                                        
    drwxr-xr-x  7 root   root   4096 mar 27 20:44 mysql-standard-5.0.87-pc-linux-gnu-i686-glibc23                                                                             
    lrwxrwxrwx  1 root   root     24 mar 27 16:28 net-snmp -> /opt/zimbra/net-snmp-5.5   
    drwxr-xr-x  9 root   root   4096 mar 27 20:44 net-snmp-5.5                           
    lrwxrwxrwx  1 root   root     30 mar 27 20:44 openldap -> /opt/zimbra/openldap-2.4.20.4z                                                                                  
    drwxr-xr-x  9 root   root   4096 mar 27 20:44 openldap-2.4.20.4z                     
    lrwxrwxrwx  1 root   root     36 mar 27 20:44 openldap-clibs -> /opt/zimbra/openldap-clibs-2.4.20.4z                                                                      
    drwxr-xr-x  3 root   root   4096 mar 27 20:44 openldap-clibs-2.4.20.4z               
    lrwxrwxrwx  1 root   root     26 mar 27 20:44 openssl -> /opt/zimbra/openssl-0.9.8l  
    drwxr-xr-x  6 root   root   4096 mar 27 20:44 openssl-0.9.8l                         
    lrwxrwxrwx  1 root   root     28 mar 27 20:44 postfix -> /opt/zimbra/postfix-2.6.5.2z
    drwxr-xr-x  6 root   root   4096 mar 27 20:44 postfix-2.6.5.2z                       
    drwxr-xr-x  3 zimbra zimbra 4096 mar 27 18:16 redolog                                
    lrwxrwxrwx  1 root   root     24 mar 27 20:44 snmp -> /opt/zimbra/net-snmp-5.5       
    drwxr-xr-x  7 zimbra zimbra 4096 mar 27 18:15 ssl                                    
    drwxr-xr-x  4 zimbra zimbra 4096 mar 27 17:14 store                                  
    lrwxrwxrwx  1 root   root     24 mar 27 20:44 tcmalloc -> /opt/zimbra/tcmalloc-1.4   
    drwxr-xr-x  5 root   root   4096 mar 27 20:44 tcmalloc-1.4                           
    drwxr-xr-x  3 zimbra zimbra 4096 mar 27 20:44 wiki                                   
    drwxr-xr-x  6 root   root   4096 mar 27 20:44 zimbramon                              
    drwxr-xr-x  2 zimbra zimbra 4096 mar 27 20:44 zimlets                                
    drwxr-xr-x  2 zimbra zimbra 4096 mar 27 20:44 zimlets-admin-extra                    
    drwxr-xr-x  2 zimbra zimbra 4096 mar 27 16:29 zimlets-deployed                       
    drwxr-xr-x  2 zimbra zimbra 4096 mar 27 20:44 zimlets-experimental                   
    drwxr-xr-x  2 zimbra zimbra 4096 mar 27 20:44 zimlets-extra                          
    drwxr-xr-x  4 zimbra zimbra 4096 mar 28 00:01 zmstat                                 
    ----------------                                                                     
     00:13:58 up  6:23,  1 user,  load average: 0.08, 0.05, 0.01                         
    ----------------                                                                     
    2097152 KB                                                                           
    ----------------                                                                     
    ----------------                                                                     
    FREE total used free shared buffers cached Mem: 2048 1248 799 0 0 0 -/+ buffers/cache: 1248 799 Swap: 0 0 0 KB                                                            
    ----------------                                                                     
    ----------------                                                                     
    
    ::1     localhost ip6-localhost ip6-loopback
    fe00::0 ip6-localnet                        
    ff00::0 ip6-mcastprefix                     
    ff02::1 ip6-allnodes                        
    ff02::2 ip6-allrouters                      
    ff02::3 ip6-allhosts                        
    127.0.0.1 localhost.localdomain localhost   
    # Auto-generated hostname. Please do not remove this comment.
    11.22.33.44 myhostname.domain.com  myhostname zimbra.cumulus.lan
    ----------------                                              
    search domain.com
    nameserver 127.0.0.1
    nameserver 213.186.33.99
    nameserver 87.98.230.202
    ----------------
    # /etc/nsswitch.conf
    #
    # Example configuration of GNU Name Service Switch functionality.
    # If you have the `glibc-doc-reference' and `info' packages installed, try:
    # `info libc "Name Service Switch"' for information about this file.
    
    passwd:         compat
    group:          compat
    shadow:         compat
    
    hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4
    networks:       files
    
    protocols:      db files
    services:       db files
    ethers:         db files
    rpc:            db files
    
    netgroup:       nis
    ----------------
    ----------------
    lrwxrwxrwx 1 root root      18 mar 16 13:04 /usr/lib/libstdc++.so.5 -> libstdc++.so.5.0.7
    -rw-r--r-- 1 root root  829320 jul 15  2008 /usr/lib/libstdc++.so.5.0.7
    lrwxrwxrwx 1 root root      19 mar 16 12:58 /usr/lib/libstdc++.so.6 -> libstdc++.so.6.0.10
    -rw-r--r-- 1 root root 1019216 ene  2  2009 /usr/lib/libstdc++.so.6.0.10
    lrwxrwxrwx 1 root root      18 mar 16 13:04 /usr/lib64/libstdc++.so.5 -> libstdc++.so.5.0.7
    -rw-r--r-- 1 root root  829320 jul 15  2008 /usr/lib64/libstdc++.so.5.0.7
    lrwxrwxrwx 1 root root      19 mar 16 12:58 /usr/lib64/libstdc++.so.6 -> libstdc++.so.6.0.10
    -rw-r--r-- 1 root root 1019216 ene  2  2009 /usr/lib64/libstdc++.so.6.0.10
    ----------------
    I wanted to know what's the difference between mailboxd_java_heap_memory_percent and mailboxd_java_heap_new_size_percent?

    Because sometimes with 600 MB RAM I have seen some messages in random services that say that they could not create the java virtual machine because there was not enough memory and it does not make with 600 MB RAM free.

    Any help is welcome and do not hesitate to ask me to run more commands in order to find my problem.

    adrian15

  2. #2
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,016
    Rep Power
    24

    Default

    I run we these on my mini-itx server and 2GB RAM
    Code:
    mailboxd_java_heap_memory_percent = 30
    mailboxd_java_heap_new_size_percent = 25
    mailboxd_java_options = -server -Djava.awt.headless=true -XX:+UseConcMarkSweepGC -XX:NewRatio=2 -XX:PermSize=128m -XX:MaxPermSize=128m -XX:SoftRefLRUPolicyMSPerMB=1 -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCApplicationStoppedTime
    ldap_common_threads = 8
    ldap_common_toolthreads = 1
    zimbraMessageCacheSize: 2000
    ldap_db_cachesize = 10000
    ldap_db_dncachesize = 0
    ldap_db_idlcachesize = 10000
    And the system stats show
    Code:
    $ free
                 total       used       free     shared    buffers     cached
    Mem:       2065860    1982896      82964          0     180184     854188
    -/+ buffers/cache:     948524    1117336
    Swap:      4128760          0    4128760
    With those settings which are pretty much default the Zimbra experience is great. I have also disabled AS/AV, that is handled by my front-end MTA, and logger has also been switched off.

  3. #3
    adrian15 is offline Member
    Join Date
    Mar 2010
    Posts
    14
    Rep Power
    5

    Default Stats failed

    Quote Originally Posted by uxbod View Post
    I run we these on my mini-itx server and 2GB RAM
    After running:
    Code:
    zmlocalconfig -e mailboxd_java_heap_memory_percent=30
    zmlocalconfig -e mailboxd_java_heap_new_size_percent=25
    zmlocalconfig -e mailboxd_java_options="-server -Djava.awt.headless=true -XX:+UseConcMarkSweepGC -XX:NewRatio=2 -XX:PermSize=128m -XX:MaxPermSize=128m -XX:SoftRefLRUPolicyMSPerMB=1 -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCApplicationStoppedTime"
    zmlocalconfig -e ldap_common_threads=8
    zmlocalconfig -e ldap_common_toolthreads=1
    zmlocalconfig -e zimbraMessageCacheSize=2000
    zmlocalconfig -e ldap_db_cachesize=10000
    zmlocalconfig -e ldap_db_dncachesize=0
    zmlocalconfig -e ldap_db_idlcachesize=10000
    and then:
    Code:
    zmcontrol stop
    zmcontrol start
    I get this error:

    Code:
    zimbra@myhostname:/root$ zmcontrol start
    Host zimbra.cumulus.lan
            Starting ldap...Done.
            Starting mailbox...Done.
            Starting snmp...Done.
            Starting mta...Done.
            Starting stats...Failed.
    Could not create the Java virtual machine.
    Use of uninitialized value $expected in string ne at /opt/zimbra/zimbramon/lib/Zimbra/Mon/Zmstat.pm line 57.
    Use of uninitialized value $expected in concatenation (.) or string at /opt/zimbra/zimbramon/lib/Zimbra/Mon/Zmstat.pm line 58.
    Must be user  to run this command
    By the way, I am also interested in disabling stats.

    Remember that I cannot use SWAP at all.

    adrian15

  4. #4
    adrian15 is offline Member
    Join Date
    Mar 2010
    Posts
    14
    Rep Power
    5

    Default Same problem after removing internal dns server

    Quote Originally Posted by uxbod View Post
    I run we these on my mini-itx server and 2GB RAM
    I have removed the bind server from the zimbra server (and setup it somewhere else to free 150 MB of RAM or so) and I have updated to 6.0.5 GA version.

    Same problem on stats not starting ok.

    adrian15

  5. #5
    ringnebula is offline Loyal Member
    Join Date
    Jan 2006
    Posts
    81
    Rep Power
    9

    Default

    May I ask why you are running without a swap partition?
    Jacob Turner
    Ringnebula Systems - Ukiah, CA

  6. #6
    dbeery is offline New Member
    Join Date
    Sep 2009
    Location
    Deutschland
    Posts
    4
    Rep Power
    5

    Default

    Quote Originally Posted by ringnebula View Post
    May I ask why you are running without a swap partition?
    Greetings,

    Not sure about his situation, but with a large number of the virtual servers offered by web hosting companies this is a standard situation.

    All of my virtual linux servers have no swap.


    David

  7. #7
    adrian15 is offline Member
    Join Date
    Mar 2010
    Posts
    14
    Rep Power
    5

    Smile Openvz is the problem

    Quote Originally Posted by ringnebula View Post
    May I ask why you are running without a swap partition?
    Because it is based on openvz. (I have just gotten the answer.)

    I am sorry about it because I have looked into openvz problems in the forum and it seems it is a nightmare (the same nightmare I was suffering).

    I will probably change my VPS for another one.

    Thank you for all your pieces of advice from you all I have learnt a lot.

    adrian15

  8. #8
    caleman is offline Starter Member
    Join Date
    May 2010
    Posts
    1
    Rep Power
    4

    Default

    adrain15, any lucking finding a good hosting company?

  9. #9
    imx
    imx is offline Special Member
    Join Date
    Jun 2009
    Posts
    131
    Rep Power
    5

    Default

    If anyone is interested in EU based KVM VM's, drop me a mail - can offer free trial for anyone that wants to test performance.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Amavis RAM Disk Setup - OK Now To Reimplement?
    By LMStone in forum Administrators
    Replies: 7
    Last Post: 10-12-2011, 08:26 PM
  2. Zimbra RAM consumption when installing and cores
    By adrian15 in forum Installation
    Replies: 2
    Last Post: 03-21-2010, 11:24 AM
  3. Under 100 users, 2.5GB RAM, 500mb Swap Space
    By rotorboy in forum Administrators
    Replies: 5
    Last Post: 10-20-2009, 11:49 AM

Posting Permissions

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