Thursday, July 14, 2011


So after wrestling with performance issues for over a week on our web server running PHP, I finally found the culprit.

These 2 lines of code in our header file were causing the CPU on our web server to run at 100%. I have not gotten feedback from one of my developers yet on what we were using those for, but they were the culprit. I figured I  would post this in case anyone else ran into this issue since we have been trying to solve this for over a week. We read through tons of web posts on PHP and high CPU, but none applied to our situation. The CPU's on our server were completely maxed out.

No comments: