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

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b39f45-2ba20.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b39f45-2ba20.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?