PHP concurrent write failure.


I have written an interface that simply inserts data into the database. When passing the stress test of apache"s ab.exe tool, if the concurrency is more than 200, there will be write failures. I can"t find the error message in the Nginx error log. How should I locate the cause of the failure?

Jan.20,2022

look at the log, whether it is nginx , php-fpm / apache , PHP or MySQL , there will always be clues. If everything is normal in the log, it is very likely that the error catch is put in PHP . Check the code to see if there is any error judgment and no log is printed

.
Menu