Skocz do zawartości
Zaloguj się, aby obserwować  
Cameleon

Zamuła W Godzinach Szczytu ;p

Polecane posty

Zamuła w godzinach szczytu ;p

 

Mój konfig...,

 

##

## Server-Pool Size Regulation (MPM specific)

##

 

# the MPM (multiprocessing module) is not a dynamically loadable module in the

# sense of other modules. It is a compile time decision which one is used. We

# provide different apache2 MPM packages, containing different httpd2 binaries

# compiled with the available MPMs. See APACHE_MPM in /etc/sysconfig/apache2.

 

# prefork MPM

<IfModule prefork.c>

# number of server processes to start

StartServers 5

# minimum number of server processes which are kept spare

MinSpareServers 5

# maximum number of server processes which are kept spare

MaxSpareServers 10

# highest possible MaxClients setting for the lifetime of the Apache process.

ServerLimit 120

# maximum number of server processes allowed to start

MaxClients 120

# maximum number of requests a server process serves

MaxRequestsPerChild 0

</IfModule>

 

# worker MPM

<IfModule worker.c>

# initial number of server processes to start

StartServers 2

# minimum number of worker threads which are kept spare

MinSpareThreads 25

# maximum number of worker threads which are kept spare

MaxSpareThreads 75

# maximum number of simultaneous client connections

MaxClients 120

# constant number of worker threads in each server process

ThreadsPerChild 25

# maximum number of requests a server process serves

MaxRequestsPerChild 0

</IfModule>

 

# leader MPM

<IfModule leader.c>

# initial number of server processes to start

StartServers 2

# minimum number of worker threads which are kept spare

MinSpareThreads 25

# maximum number of worker threads which are kept spare

MaxSpareThreads 75

# maximum number of simultaneous client connections

MaxClients 120

# constant number of worker threads in each server process

ThreadsPerChild 25

# maximum number of requests a server process serves

MaxRequestsPerChild 0

</IfModule>

 

# perchild MPM

<IfModule perchild.c>

# constant number of server processes

NumServers 5

# initial number of worker threads in each server process

StartThreads 5

# minimum number of worker threads which are kept spare

MinSpareThreads 5

# maximum number of worker threads which are kept spare

MaxSpareThreads 10

# maximum number of worker threads in each server process

MaxThreadsPerChild 20

# maximum number of connections per server process

MaxRequestsPerChild 0

 

AcceptMutex fcntl

</IfModule>

 

# metux MPM

<IfModule metuxmpm.c>

# initial number of worker threads in each server process

StartThreads 5

# minimum number of worker threads which are kept spare

MinSpareThreads 5

# maximum number of worker threads which are kept spare

MaxSpareThreads 10

# maximum number of connections per server process

MaxRequestsPerChild 0

 

Multiplexer "wwwrun" "www"

 

</IfModule>

 

 

#

# KeepAlive: Whether or not to allow persistent connections (more than

# one request per connection). Set to "Off" to deactivate.

#

KeepAlive On

 

#

# MaxKeepAliveRequests: The maximum number of requests to allow

# during a persistent connection. Set to 0 to allow an unlimited amount.

# We recommend you leave this number high, for maximum performance.

#

MaxKeepAliveRequests 100

 

#

# KeepAliveTimeout: Number of seconds to wait for the next request from the

# same client on the same connection.

#

KeepAliveTimeout 15

 

#

# EnableMMAP: Control whether memory-mapping is used to deliver

# files (assuming that the underlying OS supports it).

# The default is on; turn this off if you serve from NFS-mounted

# filesystems. On some systems, turning it off (regardless of

# filesystem) can improve performance; for details, please see

# http://httpd.apache.org/docs-2.0/mod/core.html#enablemmap

#

#EnableMMAP off

 

#

# EnableSendfile: Control whether the sendfile kernel support is

# used to deliver files (assuming that the OS supports it).

# The default is on; turn this off if you serve from NFS-mounted

# filesystems. Please see

# http://httpd.apache.org/docs-2.0/mod/core....#enablesendfile

#

#EnableSendfile off

 

 

#

# The following directives modify normal HTTP response behavior to

# handle known problems with browser implementations.

#

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

 

#

# The following directive disables redirects on non-GET requests for

# a directory that does not include the trailing slash. This fixes a

# problem with Microsoft WebFolders which does not appropriately handle

# redirects for folders with DAV methods.

# Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.

#

BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully

BrowserMatch "^WebDrive" redirect-carefully

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

BrowserMatch "^gnome-vfs" redirect-carefully

 

 

 

chciał bym osiągnąć rezultat żeby serwer wytrzymywał połączenia i nie swapował, bo w tym momencie swapuje w godzinach szczytu i pisze to many connections to mysql. - poprostu chce aby wolniej strona chodzila przez zmniejszenie ilosci polaczen albo co sam nie wiem, jestem nobem w ustawieniach serwera dlatego prosze was o wyrozumialosc i jakies wskazowki. - strona ktora obciaza serwer ma sporo wejjsc dziennie i jest ne e-comersie co jest pamiecio zerne.... 1gb, amd 3.0 64 plesk 8.0 suse 10.

Udostępnij ten post


Link to postu
Udostępnij na innych stronach
to jest tylko i wyłącznie plik server_tuning.php

gdzie jest większość czego potrzeba...

Niestety mylisz się, aczkolwiek i w tym kawałku który wkleiłeś widzę wpisy warte uwagi...

Udostępnij ten post


Link to postu
Udostępnij na innych stronach

Hi!

 

Zmien:

 

KeepAlive On na KeepAlive Off

 

MaxRequestsPerChild 0 na MaxRequestsPerChild 25

 

w tym przypadku

 

ServerLimit 120

MaxClients 120

 

w granicach 80-100

 

Obserwuj co sie dzieje, w razie potrzeby zmien ServerLimit / MaxClients.

 

Optymalizacja MySQL tez przyda sie.

 

Z pozdrowieniami

Tomasz Benert

Udostępnij ten post


Link to postu
Udostępnij na innych stronach

Skoro Tomasz.b( notabene mój dawny usługodawca - pozdrawiam!)

zajął się już Apachem, to ja się w to nie wtrącam. Lecę dalej...

Pokaż co masz w pliku my.cnf(find / -iname my.cnf) i co w /etc/fstab,

php.ini narazie zostawiam.

Udostępnij ten post


Link to postu
Udostępnij na innych stronach

Bądź aktywny! Zaloguj się lub utwórz konto

Tylko zarejestrowani użytkownicy mogą komentować zawartość tej strony

Utwórz konto

Zarejestruj nowe konto, to proste!

Zarejestruj nowe konto

Zaloguj się

Posiadasz własne konto? Użyj go!

Zaloguj się

Zaloguj się, aby obserwować  

×