apache - PHP - AB Test Fails -
my web app php native, no frameworks or anything, server 32gb ram, when there huge traffic on website, comes slow (2 sec page loading becomes 50 seconds).
tried ab test using
ab -n 20000 -c 1000 mywebsite.com
it gives
apr_socket_connect(): no connection made because target machine actively refused it.
after time
is there anyway allocate more ram php or else ?
most likely, hitting maximum concurrent connections. read following suggestions below:
for windows server (mpm_winnt)
- configure
threadlimit
,threadsperchild
onhttpd-mpm.conf
. value should enough handle multiple and/or concurrent requests.
for linux (module dependent)
- depending on module using, set
maxrequestworkers
directive number of connections want handle.
for additional reference, can check documentation directives needed configured server can handle multiple and/or concurrent requests. apache mpm modules
Comments
Post a Comment