Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 7th June 2013, 19:25
mzandstra mzandstra is offline
Junior Member
 
Join Date: Mar 2013
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Thrashing issues with mpm-itk

Hi,

I'm using a 2 VPSes (1 apache, 1 mysql) to run ~30 php/mysql sites. It's a shared-user environment, so I went with mpm-itk. My problem now is that apache seems to be ignoring my ServerLimit and MaxClients settings and ending up in swap, which causes all the sites to crash.

Relevant chunk of httpd.conf:

Code:
<IfModule mpm_itk_module>
        ServerLimit             30
        StartServers            5
        MinSpareServers          3
        MaxSpareServers         7
        MaxClients              30
        MaxRequestsPerChild   1000
        AssignUserId apache apache
</IfModule>
I've confirmed that mpm-itk is being used, and this is CentOS 5.5 with 1 GB RAM. I wrote a shell script / cron job to check apache's memory usage every 5 minutes, here's some of the output:

Code:
06-07-2013 14:55:02 - 76 MB Free with 52 httpd processes of average size 20895
06-07-2013 15:00:01 - 319 MB Free with 62 httpd processes of average size 18776
06-07-2013 15:05:02 - 137 MB Free with 58 httpd processes of average size 20388
06-07-2013 15:10:02 - 94 MB Free with 55 httpd processes of average size 22005
06-07-2013 15:15:03 - 91 MB Free with 55 httpd processes of average size 20211
06-07-2013 15:20:02 - 121 MB Free with 62 httpd processes of average size 18422
06-07-2013 15:25:01 - 859 MB Free with 10 httpd processes of average size 12281
06-07-2013 15:30:01 - 845 MB Free with 10 httpd processes of average size 11435
06-07-2013 15:35:01 - 852 MB Free with 10 httpd processes of average size 10672
As you can see, apache is going way over the limit of 30 threads I set. Anyone know why this is? I installed mpm-itk from the CentOS repo, not as a patch.

Thanks,
-michael
Reply With Quote
Sponsored Links
 

Bookmarks

Tags
apache, centos, linux, mpm, server

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail Server Memory Allocation Problems and Table Lookup Issues darinpeterson Installation/Configuration 2 29th March 2013 01:36
Various Postfix/IMAP/Squirrelmail issues suaswe HOWTO-Related Questions 2 23rd May 2012 12:08
Ubuntu Linux 10.04-mail issues Happy HOWTO-Related Questions 4 5th January 2012 06:41
ClamAV Milter Issues - Virtual Hosting Howto With Virtualmin On CentOS 5.1 pheniks HOWTO-Related Questions 14 26th March 2008 12:04
Couple issues with ispconfig 2.2.12 after Fiesty upgrade pyropoptrt Installation/Configuration 15 1st May 2007 21:37


All times are GMT +2. The time now is 22:01.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.