Optimale Konfiguration Apache

Alles, was den Apache betrifft, kann hier besprochen werden.

Optimale Konfiguration Apache

Postby Nerion » 31. October 2006 11:35

Hallo,

da mein Server bzw. mein Apache öfter abstürzt, denke ich er kommt an sein Limit vom Ram, daher denke ich das nachfolgende Konfig einfach nicht richtig eingestellt ist. Auf meinem Server laufen ca. 10 Homepages und ich hab 100 MBRam für den Apache ca. zur Verfügung. Ich möchte dass der Apache ca 10-15 homepage bedienen kann, die allesamt keine all zu großen Besucher haben. Könnt ihr mir eine Konfig zusammenstellen die ich ungefair vornehmen sollte?
Und soll ich KeepAlive On oder Off setzen, was macht das genua, hab das aus der Apache doku nicht richtig verstanden.

Code: Select all
##
## Server-Pool Size Regulation (MPM specific)
##

# prefork MPM
# StartServers ......... number of server processes to start
# MinSpareServers ...... minimum number of server processes which are kept spare
# MaxSpareServers ...... maximum number of server processes which are kept spare
# MaxClients ........... maximum number of server processes allowed to start
# MaxRequestsPerChild .. maximum number of requests a server process serves
<IfModule prefork.c>
StartServers         2
MinSpareServers      1
MaxSpareServers      4
MaxClients          30
ServerLimit   150
MaxRequestsPerChild  0
</IfModule>

# pthread MPM
# StartServers ......... initial  number of server processes to start
# MaxClients ........... maximum  number of server processes allowed to start
# MinSpareThreads ...... minimum  number of worker threads which are kept spare
# MaxSpareThreads ...... maximum  number of worker threads which are kept spare
# ThreadsPerChild ...... constant number of worker threads in each server process
# MaxRequestsPerChild .. maximum  number of requests a server process serves
<IfModule worker.c>
StartServers         2
MaxClients         150
MinSpareThreads     25
MaxSpareThreads     75
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>

# perchild MPM
# NumServers ........... constant number of server processes
# StartThreads ......... initial  number of worker threads in each server process
# MinSpareThreads ...... minimum  number of worker threads which are kept spare
# MaxSpareThreads ...... maximum  number of worker threads which are kept spare
# MaxThreadsPerChild ... maximum  number of worker threads in each server process
# MaxRequestsPerChild .. maximum  number of connections per server process (then it dies)
<IfModule perchild.c>
NumServers           3   #5
StartThreads         3   #5
MinSpareThreads      3   #5
MaxSpareThreads     10
MaxThreadsPerChild  20
MaxRequestsPerChild  0
AcceptMutex fcntl
Nerion
 
Posts: 11
Joined: 23. March 2006 11:44

Return to Apache

Who is online

Users browsing this forum: No registered users and 3 guests