WARNING: MaxClients of xyz exceeds ServerLimit value of 256 servers
Jeśli przytrafia Wam się komunikat ostrzeżenia przy podnoszeniu/przeładowaniu Apache:
-
WARNING: MaxClients of XYZ exceeds ServerLimit value of 256 servers, lowering MaxClients to 256. To increase, please see the ServerLimit directive.
to rozwiązanie jest prostrze niż się wydaje.
Najprawdopodobniej w konfiguracji serwera brakuje Wam dyrektywy ServerLimit lub jest ona umieszczona za MaxClients. Wtedy właśnie serwer przyjmuje dla ServerLimit domyślną wartość 256 i wyrzuca ostrzeżenie o limitowaniu MaxClients do tej wartości. Wystarczy wrzucić ServerLimit przed MaxClients i problem rozwiązany.
Przykładowa błędna konfiguracja:
-
StartServers 32
-
MinSpareServers 10
-
MaxSpareServers 40
-
MaxClients 1024
-
MaxRequestsPerChild 8
-
ServerLimit 256
Przykładowa dobra konfigruracja:
-
StartServers 10
-
MinSpareServers 10
-
MaxSpareServers 40
-
ServerLimit 1024
-
MaxClients 1000
-
MaxRequestsPerChild 8
About this entry
You’re currently reading “WARNING: MaxClients of xyz exceeds ServerLimit value of 256 servers,” an entry on Piotr GeoS Galas techblog
- Published:
- 01.11.11 / 8pm
- Category:
- inne/other, webdevelopment

No comments
Jump to comment form | comments rss [?] | trackback uri [?]