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 on httpd-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

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -