Why cannot Apache handle multiple requests at the same time?

后端 未结 8 595
执笔经年
执笔经年 2021-01-31 21:23

I have AMPPS installed.

My Apache server cannot handle multiple php requests at once (for example if I call localhost/script.php multiple times, they are pr

8条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-31 21:34

    Have you tried to make the simultaneous calls with different browser tabs/windows/instances ?

    Apache is multithreaded, so, it definitely can handle your parallel requests. It seems you have some things to check:

    • Make requests with an appropriate client for testing (like apache benchmark) - Take a look at https://httpd.apache.org/docs/2.4/programs/ab.html

    • Check your setup on apache. There is some wrong setups that can produce strange behavior, like single request at a time. Take a look at fork and worker parameters at httpd.conf. Suggestion: use all default parameters for testing.

提交回复
热议问题