httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Morin <>
Subject [users@httpd] Apache 2.2 connections full
Date Tue, 07 Jun 2011 20:59:58 GMT
Hello all was not sure how to word my subject line.


I posted a few weeks back on how could I increase performance of apache. I
received quite a few replies and they all helped a bit.

We even added an additional server to our server cluster to total 7 web
servers now, all load balanced by HAProxy

We currently receive about 14 million impressions a day to about 60
different domains/websites..


Our hosting provider uses HAProxy, rather than an appliance,  I assume to
reduce costs. However I feel like these HAProxy machines are not reliable at
all..Well not under the supervision of our hosting company , anyways.J


On to my questions..


During peek hours, like a few mins ago, all of our web servers became high
in load, like close to 100! We still had plenty of RAM left and for sure
there was no swapping..

Please see my config below as  quick snapshot of the httpd.conf file on our
Centos Servers.


The weird thing is when I would go see the server-status I would see all the
slots filed with either W or C and nothing else.. Then after a what appears
a random amount of time it would all clear up , and then come back again.
Almost like HAProxy would send a bunch of requests to a server, then it
would get full and then(haproxy) say, oh that server is filled I will not
send traffic there, for now, then it would come back and see hey this server
is  empty, lets send a bunch of traffic there.


We also use memcache to cache sessions and mysql queries, along with
eAcclerator. I assume that those are functioning properly


Does this make sense, am I on drugs? J


Thanks, and have a great rest  of the day!


ServerTokens Prod

ServerRoot "/etc/httpd"

PidFile run/

Timeout 2

KeepAlive Off

TraceEnable Off

MaxKeepAliveRequests 60

KeepAliveTimeout 3

<IfModule prefork.c>

StartServers       125

MinSpareServers    100

MaxSpareServers   225

ServerLimit      400

MaxClients       400

MaxRequestsPerChild   10000                


<IfModule worker.c>

StartServers         2

MaxClients         150

MinSpareThreads     25

MaxSpareThreads     75 

ThreadsPerChild     25

MaxRequestsPerChild  100


Listen 80

LoadModule auth_basic_module modules/

LoadModule auth_digest_module modules/

LoadModule authn_file_module modules/

LoadModule authn_alias_module modules/

LoadModule authn_anon_module modules/

LoadModule authn_default_module modules/

LoadModule authz_host_module modules/

LoadModule authz_user_module modules/

LoadModule authz_owner_module modules/

LoadModule authz_groupfile_module modules/

LoadModule authz_default_module modules/

LoadModule include_module modules/

LoadModule log_config_module modules/

LoadModule env_module modules/

LoadModule ext_filter_module modules/

LoadModule mime_magic_module modules/

LoadModule expires_module modules/

LoadModule deflate_module modules/

LoadModule headers_module modules/

LoadModule usertrack_module modules/

LoadModule setenvif_module modules/

LoadModule mime_module modules/

LoadModule status_module modules/

LoadModule autoindex_module modules/

LoadModule vhost_alias_module modules/

LoadModule negotiation_module modules/

LoadModule dir_module modules/

LoadModule alias_module modules/

LoadModule rewrite_module modules/

LoadModule proxy_module modules/

LoadModule cern_meta_module modules/

LoadModule asis_module modules/

LoadModule geoip_module /usr/lib64/httpd/modules/

Include conf.d/*.conf

Include conf.d/*.vhost

User apache

Group apache

ServerAdmin root@localhost

UseCanonicalName Off

DocumentRoot "/home/www"

<Directory />

    Options FollowSymLinks

    AllowOverride None


<Directory "/home/www">

    Options -Indexes FollowSymLinks

    AllowOverride All

    Order allow,deny

    Allow from all


<IfModule mod_userdir.c>

    UserDir disable


DirectoryIndex index.php index.html

AccessFileName .htaccess

<Files ~ "^\.ht">

    Order allow,deny

    Deny from all


TypesConfig /etc/mime.types

DefaultType text/plain

<IfModule mod_mime_magic.c>

    MIMEMagicFile conf/magic


HostnameLookups Off

ErrorLog logs/error_log

LogLevel notice

LogFormat "%h" combined

LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b" common

LogFormat "%{Referer}i -> %U" referer

LogFormat "%{User-agent}i" agent

CustomLog "/dev/null" combined

ServerSignature Off

        ScriptAlias /cgi-bin/ "/home/www/cgi-bin/"

<Directory "/home/www/cgi-bin">

    AllowOverride None

    Options None

    Order allow,deny

    Allow from all


IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable

AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*

AddIconByType (IMG,/icons/image2.gif) image/*

AddIconByType (SND,/icons/sound2.gif) audio/*

AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe

AddIcon /icons/binhex.gif .hqx

AddIcon /icons/tar.gif .tar

AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv

AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip

AddIcon /icons/a.gif .ps .ai .eps

AddIcon /icons/layout.gif .html .shtml .htm .pdf

AddIcon /icons/text.gif .txt

AddIcon /icons/c.gif .c

AddIcon /icons/p.gif .pl .py

AddIcon /icons/f.gif .for

AddIcon /icons/dvi.gif .dvi

AddIcon /icons/uuencoded.gif .uu

AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl

AddIcon /icons/tex.gif .tex

AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..

AddIcon /icons/hand.right.gif README

AddIcon /icons/folder.gif ^^DIRECTORY^^

AddIcon /icons/blank.gif ^^BLANKICON^^

DefaultIcon /icons/unknown.gif

ReadmeName README.html

HeaderName HEADER.html

AddLanguage ca .ca

AddLanguage cs .cz .cs

AddLanguage da .dk

AddLanguage de .de

AddLanguage el .el

AddLanguage en .en

AddLanguage eo .eo

AddLanguage es .es

AddLanguage et .et

AddLanguage fr .fr

AddLanguage he .he

AddLanguage hr .hr

AddLanguage it .it

AddLanguage ja .ja

AddLanguage ko .ko

AddLanguage ltz .ltz

AddLanguage nl .nl

AddLanguage nn .nn

AddLanguage no .no

AddLanguage pl .po

AddLanguage pt .pt

AddLanguage pt-BR .pt-br

AddLanguage ru .ru

AddLanguage sv .sv

AddLanguage zh-CN .zh-cn

AddLanguage zh-TW .zh-tw

LanguagePriority en fr

ForceLanguagePriority Prefer Fallback

AddDefaultCharset UTF-8

AddDefaultCharset iso-8859-1

AddType application/x-compress .Z

AddType application/x-gzip .gz .tgz

AddHandler type-map var

AddType text/html .shtml

AddOutputFilter INCLUDES .shtml

Alias /error/ "/home/www/error/"

<IfModule mod_negotiation.c>


BrowserMatch "Mozilla/2" nokeepalive

BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0

BrowserMatch "RealPlayer 4\.0" force-response-1.0

BrowserMatch "Java/1\.0" force-response-1.0

BrowserMatch "JDK/1\.0" force-response-1.0

BrowserMatch "Microsoft Data Access Internet Publishing Provider"

BrowserMatch "MS FrontPage" redirect-carefully

BrowserMatch "^WebDrive" redirect-carefully

BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully

BrowserMatch "^gnome-vfs/1.0" redirect-carefully

BrowserMatch "^XML Spy" redirect-carefully

BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully

ExtendedStatus On

<Location /server-status>

   SetHandler server-status

   Order deny,allow

   Deny from all

   Allow from localhost


GeoIPEnable On

GeoIPDBFile "/usr/local/share/GeoIP/GeoIPCity.dat"

GeoIPScanProxyHeaders On

AddDefaultCharset iso-8859-1




Rob Morin

Systems Administrator

Infinity Labs Inc.

(514) 387-0638 Ext: 207




View raw message