-1
我在Hyper-V Ubuntu系統上安裝了Apache。目前,分配給vm機器的2GB RAM。我有大量PHP服務上傳到Apache,通常在單個時間處理1000個併發請求。我需要幫助從apache2.conf文件設置Prefork配置,以便我的php web服務能夠處理最大併發請求。配置apache2.conf來處理併發請求
默認apache2 Prefork設置如下。
<IfModule mpm_prefork_module>
StartServers 4
MaxClients 100
MinSpareThreads 10
MaxSpareThreads 50
ThreadsPerChild 20
MaxRequestsPerChild 0
</ifModule>