Making Zimbra run on minimal RAM

From Zimbra :: Wiki

Jump to: navigation, search
   Article-alert.png  - This article is a community contribution and may include unsupported customizations for network edition customers.


Admin Article

Article Information

This article applies to the following ZCS versions.
  ZCS 5.0 Article  ZCS 5.0
  ZCS 4.5 Article  ZCS 4.5

256 MB on 4.5.x is doable, but for 5.0.x you really should use at least 512MB...search the forums for example cases.

this is a test

1. Install minimum sets of OS components and disable any unnecessary services.

2. Disable any unnecessary services, such as AntiVirus, AntiSpam, Proxy, and Logger.

3. Increase heap size at your own risk. ex:zmlocalconfig -e tomcat_java_heap_memory_percent=40

Making Zimbra run on 256 MB ram

(Disclaimer: You do all of this at your own risk, I didn't always know what I was doing -- thewizzard)

1. Turn off unnecessary services

As suggested above, you can turn off AntiVirus, AntiSpam, Proxy and Logger.

2. Increase Tomcats heap size

Also suggested above: increase tomcats heap size using this command:

 zmlocalconfig -e tomcat_java_heap_memory_percent=40

3. Lower MySQL memory usage

Change the percentage of the available memory MySQL should use to 15%:

 zmlocalconfig -e mysql_memory_percent=15

4. Change the size of the MySQL table cache

I don't actually really know what this does, but Zimbra felt faster after I changed it:

 zmlocalconfig -e mysql_table_cache=250

5. Change the my.cnf file

Here are the settings to change in the my.cnf file (which can be found at /opt/zimbra/conf):

 threadcache = 5
 maxconnections = 14

6. Change the slapd.conf.in file

This tip is from the page Performance Tuning Guidelines for Large Deployments. Add these two lines to slapd.conf.in (which can also be found at /opt/zimbra/conf):

 threads 8
 idletimeout 5

Please keep in mind that this setup will be a bit slow and you probably shouldn't use it with more than one user.

Verified Against: unknown Date Created: 3/21/2006
Article ID: http://wiki.zimbra.com/index.php?title=Making_Zimbra_run_on_minimal_RAM Date Modified: 04/15/2010
Personal tools