900 юзеров онлайн качают 50-ти метровый файл в 2 потока.
Что нужно изменить в конфигурации Apache 2.0 для того чтобы сервер не орал на меня Cannot allocate memory или Cannot open file, meny files open in system, или ещё Cannot fork new proccess
Что нужно менять в:
<IfModule prefork.c>
StartServers 2
MinSpareServers 5
MaxSpareServers 20
ServerLimit 900
MaxClients 900
MaxRequestsPerChild 4000
</IfModule>
# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# 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 900
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
#<IfModule perchild.c>
#NumServers 5
#StartThreads 2
#MinSpareThreads 1
#MaxSpareThreads 2
#MaxThreadsPerChild 3
#MaxRequestsPerChild 30
#</IfModule>