Hallo!
Habe ein Problem mit meinem Server.
Ich hoste für einen Freund eine Clan-Seite. Dort gibt es Downloads, deren Größe zwischen 100 - 300 MB je Datei liegen.
Am Tag kommen ca. 2000 Besucher, jeder lädt ein paar Files, also Traffic sehr hoch.
Nun in den letzten Tagen kommen immer mehr Besucher und laden mehr.
Kurz: Der Apache2 schafft es nicht mehr.
Bekomme Errors, MaxClients erreicht (256) bei mpm_prefork.
Nun habe ich in der Kiste einen Opteron 152 und leider nur 1GB RAM.
Dadurch kommt es sehr oft vor, dass die Seitenzugriffe nicht bearbeitet werden können, Zeitüberschreitung.
Hat jemand eine Idee was ich machen kann, damit alles besser läuft?
Also ausser Seite löschen, mehr Ram einbauen (geht nicht) oder Downloads auslagern.
Meine Apache2-Config (nur wichtiges):
Timeout 300
KeepAlive Off (auch mal On deswegen poste ich auch die KeepAlive-Einstellungen)
MaxKeepAliveRequests 256
KeelAliveTimeout 3
mpm-prefork:
StartServers 5
MinSpareServers 5
MaxSpareServers 10
ServerLimit 1000
MaxClients 265
MaxRequestPerChild 10000
Bin dankbar für alle Vorschläge!
Apache2, viele Zugriffe, Server lahmt
Re: Apache2, viele Zugriffe, Server lahmt
Lasse die Downloads am Besten von Lighty (http://www.lighttpd.net/) ausliefern, der ist unter Anderem für solche Zwecke optimiert.
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
