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 12-11-2008, 12:55 AM
Loyal Member
 
Posts: 89
Default Memory problems with zimbra

Hi,

I am facing a big problem with Zimbra's memory handling capabilities. The problem is that my server has been upgraded from 2GB RAM to 8 GB and I see the RAM utilization is around 3 GB-4GB and suddenly the Free memory gets down to 50MB. I am here by attaching chart from hyperic, which shows the same. I have same problem at one other installation. I have made changes to mailboxd_java_heap_memory_percent = 20 and mysql_memory_percent = 25 but still this sudden unavailability is free memory is a puzzle.

I had to restart the machine and the free memory is back to normal. I have tried restarting zimbra services but it did not help. I think there is some problem with zimbra's memory handling.

My version is: Release 5.0.10_GA_2638.RHEL4_20081003035619 RHEL4 FOSS edition
Attached Images
File Type: jpg hypericmem.jpg (34.8 KB, 229 views)
Reply With Quote
  #2 (permalink)  
Old 12-11-2008, 12:59 AM
Moderator
 
Posts: 7,928
Default

Just because it is taking all the memory does not mean that there is a memory issue. Linux will eat all the memory but also free it up when other applications require the use. Is your server swapping ? perhaps show us a top and freemem from the ZCS server.
__________________
Reply With Quote
  #3 (permalink)  
Old 12-11-2008, 01:15 AM
Loyal Member
 
Posts: 89
Default memory issue

I could bee most of the memory utilized by cache and the swap is not used. I have swapped 16 GB of space. And I could see the swap usage 200KB at the point of less free memory. As I have alerts configured at memory less than 100 MB to the network it causes a huge problem as I have to explain why this happens.
Reply With Quote
  #4 (permalink)  
Old 12-11-2008, 01:25 AM
Moderator
 
Posts: 7,928
Default

Thats Linux for you Linux Howtos: System -> Linux Memory Management
__________________
Reply With Quote
  #5 (permalink)  
Old 12-11-2008, 07:42 AM
Elite Member
 
Posts: 337
Default

Good article, easy to understand for those of us that don't know much about Linux!
Reply With Quote
  #6 (permalink)  
Old 12-11-2008, 05:09 PM
Moderator
 
Posts: 1,209
Default

Quote:
Originally Posted by rajeshkodali View Post
I could bee most of the memory utilized by cache and the swap is not used. I have swapped 16 GB of space. And I could see the swap usage 200KB at the point of less free memory. As I have alerts configured at memory less than 100 MB to the network it causes a huge problem as I have to explain why this happens.
Later Linux kernels seem to be pretty aggressive at moving things out to the swap file. Adding RAM to a Zimbra box after Zimbra has already been installed seems to exacerbate this tendency in our experience. I don't know why; it just happens.

Consequently, we now as a routine matter add to /etc/sysctl.conf:

Code:
vm.swappiness=0
as described in the Performance Tuning Guidelines for Large Deployments
wiki article. Swap file usage then goes down to next to nothing.

Hope that helps,
Mark
__________________
___________________________________
L. Mark Stone, CIO


"Uptime. All the time."

477 Congress Street | Portland, ME 04101-3431 | (207) 772-5678

proactive maintenance and monitoring | technology consulting
Zimbra groupware | EMR implementations | private cloud hosting
Reply With Quote
  #7 (permalink)  
Old 12-15-2008, 06:45 AM
Active Member
 
Posts: 39
Default

I was worried for the same thing.
I had a zimbra installation on a 4 GB server and upgraded it up to 8.
Only problem I had was that maiboxd would not start so I had to set
mailboxd_java_heap_memory_percent = 18
Zimbra used all my ram as cache after this change, but after a cuple of days it relased it and now I have 2-3 gb of free ram. I't newer swapped or crashed in my case so don't worry.
Reply With Quote
  #8 (permalink)  
Old 12-15-2008, 07:35 AM
Moderator
 
Posts: 1,209
Default

Quote:
Originally Posted by Viking0 View Post
I was worried for the same thing.
I had a zimbra installation on a 4 GB server and upgraded it up to 8.
Only problem I had was that maiboxd would not start so I had to set
mailboxd_java_heap_memory_percent = 18
Zimbra used all my ram as cache after this change, but after a cuple of days it relased it and now I have 2-3 gb of free ram. I't newer swapped or crashed in my case so don't worry.
Yes, we've also reduced the Java memory footprint to a very small percentage to reduce swap file usage. It works until a full backup runs (300+ mailboxes) and then we would see swap file usage of 100MB or more.

After a lot of internal testing, we've settled on keeping the Java memory percentages at their default and setting vm.swappiness to zero as our standard build policy.

As a sidebar, on servers with 12GB or more we've been able to reduce the MySQL memory percentage (you have to change the innodb buffer size manually in my.cnf as well to fully implement) with no reduction in the innodb buffer pool cache hit rates.

Hope that helps,
Mark
__________________
___________________________________
L. Mark Stone, CIO


"Uptime. All the time."

477 Congress Street | Portland, ME 04101-3431 | (207) 772-5678

proactive maintenance and monitoring | technology consulting
Zimbra groupware | EMR implementations | private cloud hosting
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.