I have a FreeBSD 9 server and I run it for a Drupal site, which uses Nginx and PHP-FPM and all those setting related with Drupal like Memcached, APC, MySQL.
The problem is now suddenly when the PHP-FPM is running, it calls the sbwait, and it takes too long time to load the page, I get lots of timeouts error in log. At first I thought it was a PHP issue, but it is not. I cannot get what sbwait does, I guess it means socket buffer in waiting position but why is it overkilling my application? Even when I restart the PHP-FPM process, and load the Drupal page via browser, I can see the sbwait opens by itself and queues the PHP-FPM process. It takes a few seconds to process the first page after a restart, then again the page execution time increases and causes timeouts.
What could possibly be wrong here? Why does calling the PHP-FPM process go directly in the sbwait queue and not being served by CPU or accept like other processes?
I have enough memory allocation for everything, PHP has memory of 512 MB, APC 1024 MB, Memcached 1024 MB, PHP-FPM config has pm.dynamic and pm.max-child 40 with pm.start-server 12.
The problem is now suddenly when the PHP-FPM is running, it calls the sbwait, and it takes too long time to load the page, I get lots of timeouts error in log. At first I thought it was a PHP issue, but it is not. I cannot get what sbwait does, I guess it means socket buffer in waiting position but why is it overkilling my application? Even when I restart the PHP-FPM process, and load the Drupal page via browser, I can see the sbwait opens by itself and queues the PHP-FPM process. It takes a few seconds to process the first page after a restart, then again the page execution time increases and causes timeouts.
What could possibly be wrong here? Why does calling the PHP-FPM process go directly in the sbwait queue and not being served by CPU or accept like other processes?
I have enough memory allocation for everything, PHP has memory of 512 MB, APC 1024 MB, Memcached 1024 MB, PHP-FPM config has pm.dynamic and pm.max-child 40 with pm.start-server 12.