Making Zimbra run on minimal RAM

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 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 file

This tip is from the page Performance Tuning Guidelines for Large Deployments. Add these two lines to (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: Date Modified: 2015-03-24

Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »

Jump to: navigation, search