Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-17-2010, 03:38 AM
Active Member
 
Posts: 35
Default Zimbra - excessive memory requirements for java/mysql

Hi guys,

Need your help here, please.

I have attached screenshot about what is going on on my system.

I currently run:

Release 7.0.0_BETA2_2897.UBUNTU10_64 UBUNTU10_64 FOSS edition.

The system has got 80GB fast HDD and 4GB RAM. Zimbra uses pretty much all the memory and I struggle to tweak it. On a different system I was able to take it down to about 1.3GB memory usage.

I have tried the following:

# 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

but nothing is helping.

Any ideas guys?

Many thanks.

Oliver
Attached Images
File Type: jpg screenshot.jpg (143.7 KB, 85 views)
Reply With Quote
  #2 (permalink)  
Old 11-17-2010, 04:46 AM
Moderator
 
Posts: 927
Default

Zimbra uses lots of memory, 4GB may just not be enough. You dont say how many accounts are active on this server, but that'll have an affect on memory usage.

It's also worth mentioning that as you are using a beta verison it's quite likely that it's memory usage has not been optimised yet.
Reply With Quote
  #3 (permalink)  
Old 11-17-2010, 05:19 AM
Active Member
 
Posts: 35
Default

Hi,

Many thanks for your prompt reply.

To confirm, I have 4 active users on the server, 8 accounts in total.

4GB should be more than enough. I never had problem with Zimbra and with few tweaks it is able to run smoothly with even 2GB.

Zimbra 7 beta 1 used in average 1.3GB RAM. I don't believe there is something fundamentally wrong with beta2, it is maybe I have done something wrong (see my first post about what I have done).

I am looking for an advice how to minimize the number of running mysql and java/jetty processes as they take huge amount of ram than usual.

Any advice please?

Many thanks.
Reply With Quote
  #4 (permalink)  
Old 11-20-2010, 06:07 AM
Loyal Member
 
Posts: 88
Default

I was having weird issues with zimbra chewing up the ram and pushing the machine into swap. For an experiment i left it at the default of 60 and within a day was using 50% of my swap and system performance tanked. What i found that contained the beast is you tune vm.swapiness to zero. NOw the system is nice and responsive. I always do this on all 2.6 based boxes i have as the kernel is waaaaay to agressive in swapping things out. you can set it forwhatever you want but i would go for zero.

To change the swappiness value A temporary change (lost on reboot) with a swappiness value of 10 can be made with

sudo sysctl vm.swappiness=10
To make a change permanent, edit the configuration file with your favorite editor:

gksudo gedit /etc/sysctl.conf
Search for vm.swappiness and change its value as desired. If vm.swappiness does not exist, add it to the end of the file like so:

vm.swappiness=10
Reply With Quote
  #5 (permalink)  
Old 11-20-2010, 06:14 AM
Loyal Member
 
Posts: 88
Default

I have zimbra at the memory defaults the only tuning i have done is swappiness to zero. Zimbra's actually pretty good at memory management it's the Linux kernel that tried to "free' more ram by swapping. If you throw up the swap wall the kernel doesn't have the ability to fake ram and therefore Zimbra will stay within the physical memory confines given it. 8 users on 4 gigs should be a breeze(it is now for me on 2 gigs and 8 users)..
__________________
Running Zimbra on:
Dell PE1800
CentOS 5.x x86_64
1 x p-4 3.0 ghz xeon w/HT
6 gigs ram
8 users
250 gig MDRAID 1
Release 7.1.4_GA_2555.RHEL5_64_20120105094627 CentOS5_64 FOSS edition.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.