Nginx+php-fpm concurrent

the machine is a small water pipe with 2 cores, 4 g memory and 1 m of memory.
try
ab-n 1000-c 1000 http://**.com

with the local ab.

clipboard.png

tp5

clipboard.png

nginx

clipboard.png

Mar.24,2021

1000 concurrency is quite large, for tuning, there are many aspects

  • Code optimization
  • db optimization
  • Machine configuration upgrade
  • slow down
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-1bed4df-31b60.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-1bed4df-31b60.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?