Loading...
 
Skip to main content

Custom Share Module 0.1dev

History: PerformanceTuning

Preview of version: 14

Performance Tuning

This page doesn't include tuning on the database. That you'll find here: DbPerformance

Apache

Some documents


This is a page about mod_perl tuning, just ignore the perl stuff and look at the apache tweaks in there. They did help me to get our tw.o stable again. 😊


Additional apache tuning for sites with much traffic (german)

Apache Config (httpd.conf)

Copy to clipboard
# time out connections earlier, 300 is too much Timeout 150 # clients may keep alive existing connections KeepAlive On MaxKeepAliveRequests 120 KeepAliveTimeout 15 # switch off hostname lookups, that needs some time HostnameLookups Off MinSpareServers 6 MaxSpareServers 8 StartServers 10 # 10 clients should be enough, but for peaks 50 might be good. # depends on your memory, 50 works for 2GB memory MaxClients 50 # dont set this to a value too low: MaxRequestsPerChild 1500


Try to move load from the server, tell clients to cache data:

Copy to clipboard
<IfModule mod_expires.c> <IfModule mod_headers.c> ExpiresActive On # dont cache html as people wont get page updates: # ExpiresByType text/html "access plus 1 month" ExpiresByType text/css "access plus 6 month" ExpiresByType text/javascript "access plus 6 month" ExpiresByType image/gif "access plus 6 month" ExpiresByType image/jpeg "access plus 6 month" ExpiresByType image/png "access plus 6 month" <Files ~ "\.(js|css|gif|jpe?g|png)$"> Header append Cache-Control "public" </Files> </IfModule> </IfModule>

Virtual Host Settings


Limit connections from one ip to a given number.

Homepage of mod_limitipconn

Copy to clipboard
<IfModule mod_limitipconn.c> Customlog /var/log/nameofvirtualhost-access-denied.log combined env=LIMITIP <Location /> MaxConnPerIP 10 NoIPLimit img/* </Location> </IfModule>

PHP Settings (php.ini)

php.ini

eAccelerator

Alternative PHP Cache (APC)

APC

History

Advanced
Information Version
Marc Laporte 16
View
Marc Laporte moving to own page 15
View
Marc Laporte This is covered on doc:eAccelerator page 14
View
Marc Laporte moving to own page 13
View
Marc Laporte removing really old stuff 12
View
Marc Laporte moving relevant stuff to own page 11
View
Marc Laporte no update for PHPA since 2005 10
View
Marc Laporte no release since 2003 9
View
Oliver Hertel 8
View
Oliver Hertel 7
View
Oliver Hertel 6
View
Oliver Hertel 5
View
Oliver Hertel 4
View
Oliver Hertel 3
View
Oliver Hertel 2
View
Oliver Hertel 1
View

Upcoming Events

1)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3) 
Tiki birthday
4)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting