I keep getting RAM and CPU spikes but I can't figure out where it is coming from.
If I look at the Process manager, I see,
/usr/bin/php /home/hellohel/public_html/index.php
Repeated several times. I also occasionally see:
[php] <defunct>
Taking up about 30% of my CPU! I have a very powerful server (Cloud VPS) with a lot of CPU and a lot of RAM. Usually I sit at a healthy 7-9% memory and CPU usage, but every once in a while there is a spike that slows my site way down. My site gets a LOT of traffic through out the day and I don't think the spikes are from high traffic spikes, but rather some sort of memory leak.
My biggest question is this:
When I look at my Daily Process log, I see:
49.0% /usr/bin/php /home/hellohel/public_html/index.php
When in fact, this directory does not even exist. There is no /usr/bin/php /
directory. The real script is located at:
/home/hellohel/public_html/index.php
What is going on here? Or is this all normal…
Best Answer
/usr/bin/php
is the PHP binary (php "parser", the "thing" that runs your php code), which is running a script:/home/hellohel/public_html/index.php
.I would check that script, to see what's causing it to use up that much resources.