[users@httpd] Web Server Performace Issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey Guys,

I have a web server running:

apache - httpd-2.2.0
php - php-5.1.2

The site that is hosted on this server has very high traffic and is on a
50mbit bandwidth:

qdisc tbf 8006: dev eth0 rate 50Mbit burst 1531b lat 48.8ms

The problem is that during peak hours (sometimes during normal hours) this
system becomes very slow and the commands take longer to execute.  Also
the site becomes really slow.  We have tweaked the followng httpd options:

<IfModule mpm_worker_module>
    ServerLimit          80
    StartServers         10
    MaxClients         1995
    MinSpareThreads      25
    MaxSpareThreads      75
    ThreadsPerChild      35
    MaxRequestsPerChild   0
</IfModule>

Also, I have made sure that HostnameLookups is Off.  The following is the
server hardware info:

Dual Intel(R) Xeon(TM) CPU 2.66GHz
2GB of ram

I have added 4GB of swap space to this server as well.  However, none of
these changes have improved performance.  Any ideas what I might be able
to do to make this server perform better?

Any suggestions or comments would be grately appreciated.

Thanks in advance.

-- 
httpd.conf
--
ServerRoot "/usr/local/apache"
Listen 80
LoadModule php5_module        modules/libphp5.so
<IfModule !mpm_winnt_module>
<IfModule !mpm_netware_module>
User apache
Group apache
</IfModule>
</IfModule>
ServerAdmin support@xxxxxxxxxxxxxxxxx
DocumentRoot "/usr/local/apache/htdocs"
<Directory />
    Options Indexes
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>
<Directory "/usr/local/apache/htdocs">
    Options Indexes +FollowSymLinks +ExecCGI
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
<IfModule dir_module>
    DirectoryIndex index.php index.htm index.html
</IfModule>
<FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
</FilesMatch>
ErrorLog logs/error_log
LogLevel emerg
<IfModule log_config_module>
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    <IfModule logio_module>
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\" %I %O" combinedio
    </IfModule>
    CustomLog logs/access_log common
</IfModule>
<IfModule alias_module>
    ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"
</IfModule>
<IfModule cgid_module>
    Scriptsock logs/cgisock
</IfModule>
<Directory "/usr/local/apache/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>
DefaultType text/plain
<IfModule mime_module>
    TypesConfig conf/mime.types
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
         AddType application/x-httpd-php .php .phtml
         AddType application/x-httpd-php-source .phps
    AddHandler cgi-script .cgi
</IfModule>
Include conf/extra/httpd-mpm.conf
Include conf/extra/httpd-vhosts.conf
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
Alias /awstatsclasses "/usr/local/awstats-6.5/wwwroot/classes/"
Alias /awstatscss "/usr/local/awstats-6.5/wwwroot/css/"
Alias /awstatsicons "/usr/local/awstats-6.5/wwwroot/icon/"
ScriptAlias /awstats/ "/usr/local/awstats-6.5/wwwroot/cgi-bin/"
<Directory "/usr/local/awstats-6.5/wwwroot">
    Options None
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
--END httpd.conf--

--httpd-mpm.conf--
<IfModule !mpm_netware_module>
    PidFile logs/httpd.pid
</IfModule>
<IfModule !mpm_winnt_module>
<IfModule !mpm_netware_module>
LockFile logs/accept.lock
</IfModule>
</IfModule>
<IfModule mpm_prefork_module>
    StartServers          5
    MinSpareServers       5
    MaxSpareServers      10
    MaxClients          150
    MaxRequestsPerChild   0
</IfModule>
<IfModule mpm_worker_module>
    ServerLimit          80
    StartServers         10
    MaxClients         1995
    MinSpareThreads      25
    MaxSpareThreads      75
    ThreadsPerChild      35
    MaxRequestsPerChild   0
</IfModule>
<IfModule mpm_winnt_module>
    ThreadsPerChild     250
    MaxRequestsPerChild   0
</IfModule>
<IfModule mpm_beos_module>
    StartThreads            10
    MaxClients              50
    MaxRequestsPerThread 10000
</IfModule>
<IfModule mpm_netware_module>
    ThreadStackSize      65536
    StartThreads           250
    MinSpareThreads         25
    MaxSpareThreads        250
    MaxThreads            1000
    MaxRequestsPerChild      0
    MaxMemFree             100
</IfModule>
<IfModule mpm_mpmt_os2_module>
    StartServers           2
    MinSpareThreads        5
    MaxSpareThreads       10
    MaxRequestsPerChild    0
</IfModule>
--END httpd-mpm.conf--


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux