Memory usage on Zimbra 5.0.2 NE on RHEL 5.1?

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Miklos Kalman
Advanced member
Advanced member
Posts: 76
Joined: Fri Sep 12, 2014 11:16 pm

Memory usage on Zimbra 5.0.2 NE on RHEL 5.1?

Postby Miklos Kalman » Thu Feb 28, 2008 5:53 pm

Hi,
I am running a Zimbra NE on RHEL. The machine has currently 65megs free memory which is a bit alarming. I am setting up a new environment which is being migrated from the FOSS server.
---

15821 zimbra 18 0 2010m 809m 10m S 1 20.5 3:37.67 java

2625 root 18 0 10180 644 552 S 0 0.0 0:00.86 hald-addon-stor

15457 zimbra 15 0 1211m 163m 4300 S 0 4.1 0:17.77 mysqld

1 root 15 0 10316 688 576 S 0 0.0 0:00.43 init
---
The machine is a Core2Duo 3GHz with 4GB of RAM running on 64bit RHEL5.1. It seems that Java and mysqld take up more than 90% of the memory and this machine is NOT even receiving any mail.
How can I lower the memory usage, since I am a bit worried that I will need more memory when it hits production.


Miklos Kalman
Advanced member
Advanced member
Posts: 76
Joined: Fri Sep 12, 2014 11:16 pm

Memory usage on Zimbra 5.0.2 NE on RHEL 5.1?

Postby Miklos Kalman » Fri Feb 29, 2008 12:51 pm

Is there a way to limit the memory usage of java and the mysql daemon?
dijichi2
Elite member
Elite member
Posts: 1133
Joined: Fri Sep 12, 2014 10:00 pm

Memory usage on Zimbra 5.0.2 NE on RHEL 5.1?

Postby dijichi2 » Fri Feb 29, 2008 1:03 pm

zimbra pre-allocates huge amounts of memory by default. you can change this with:
zmlocalconfig -e mysql_memory_percent = 40

zmlocalconfig -e mailboxd_java_heap_memory_percent=30
I think these are the defaults - lower them if you want to use less memory at startup, however if the box is dedicated to zimbra leave them as they are.
apatosaur.9
Posts: 31
Joined: Fri Sep 12, 2014 10:07 pm

Memory usage on Zimbra 5.0.2 NE on RHEL 5.1?

Postby apatosaur.9 » Fri Feb 29, 2008 1:04 pm

I use 5.0.2 GA on ubuntu 7.10 server, with memory useage seldom above 500 Megs. (only time was actually during install)
Admittedly I am running it for demo purposes and the load isn't especially high, but it is delivering mails and working with Thunderbird with Lightning and zimbra desktop.
I have reduced ram on this box to 768 Megs.
Disclaimer. VMWARE.
/etc/security/limits.conf on debian systems may help

/etc/sysconfig/limit* (or something like it on RPM distros)
Miklos Kalman
Advanced member
Advanced member
Posts: 76
Joined: Fri Sep 12, 2014 11:16 pm

Memory usage on Zimbra 5.0.2 NE on RHEL 5.1?

Postby Miklos Kalman » Fri Feb 29, 2008 1:05 pm

the machine is dedicated to Zimbra entrirely. However if it only leaves 65 megs during "no traffic" how much will it eat when it goes live? The only traffic it gets currently is uploading the messages from the old zimbra foss server.
The FOSS machine is running on VMWare as well. THere I gave it 3GB which it leaves usually around 500megs. And that has around 20 users and mails coming in all the time, greylisting, spam...etc
Is this memory difference due to the Network and FOSS differences ? I thought 4GB would be engough for around 20 users right? But with the rate its going I am not sure anymore. It would be good to know if this would improve over time, or should I just buy more memory before putting it into production?
User avatar
quanah
Zimbra Alumni
Zimbra Alumni
Posts: 1667
Joined: Fri Sep 12, 2014 10:33 pm
Contact:

Memory usage on Zimbra 5.0.2 NE on RHEL 5.1?

Postby quanah » Fri Feb 29, 2008 6:01 pm

Editing the number of file descriptors available to slapd in 5.0.2 will significantly reduce memory pressure. This fix will be in 5.0.3. To fix this, as root edit /opt/zimbra/libexec/zmslapd so it looks like:


ulimit -n 32768

ulimit -c unlimited

export LD_PRELOAD=/opt/zimbra/tcmalloc/lib/libtcmalloc.so

exec /opt/zimbra/openldap/libexec/slapd "$@"


Basically, just add the "ulimit -n 32768" line.
--Quanah
--
Quanah Gibson-Mount
Product Architect, Symas http://www.symas.com/
OpenLDAP Core team http://www.openldap.org/project/
fcash
Outstanding Member
Outstanding Member
Posts: 263
Joined: Fri Sep 12, 2014 10:37 pm

Memory usage on Zimbra 5.0.2 NE on RHEL 5.1?

Postby fcash » Mon Mar 03, 2008 5:19 pm

Note: "free" memory is wasted memory in Linux. Any memory not currently and actively being used by programs *will* be used as a disk/data cache. When programs need memory, pages from the cache are freed for them to use.
You only have to worry when SWAP usage starts climbing into the gigabytes. Until then, relax in the knowledge that the kernel is doing it's job managing memory in such a way to reduce the amount of disk traffic.

Return to “Administrators”

Who is online

Users browsing this forum: Google [Bot] and 13 guests