Hi everyone,
it's been a long time since I started using x10hosting and my website now as an average of 200 visitors a day.
This is great, however, I must now watch my CPU usage wich grew exponentially.
My script must do 5 requests (PHP : fsockopen) per visitor to a website and fetch the results.
It is a very CPU-consumming script, I rewrote from scratch my whole code to make it as simple as possible, and to use the less bandwidth possible.
I average a 200 realtime usage per hour (it used 400 before).
I also deleted all the contents of my website except the script.
My problem is : At some time in the day (from 03:00 to 05:00), and every day, I get a CPU usage peak.
There are no infinite loops anywhere in the code nor php errors logged.
I just don't understand why I have these CPU usage peaks, any ideas?
I can post the code if anyone want.
Thanks in advance,
Jjth
PS : I apologize for any errors I could have made in my post, I'm not english, if you don't understand anything just ask and I'll try to explain what I meant.
PS2 : see attachments :
it's been a long time since I started using x10hosting and my website now as an average of 200 visitors a day.
This is great, however, I must now watch my CPU usage wich grew exponentially.
My script must do 5 requests (PHP : fsockopen) per visitor to a website and fetch the results.
It is a very CPU-consumming script, I rewrote from scratch my whole code to make it as simple as possible, and to use the less bandwidth possible.
I average a 200 realtime usage per hour (it used 400 before).
I also deleted all the contents of my website except the script.
My problem is : At some time in the day (from 03:00 to 05:00), and every day, I get a CPU usage peak.
There are no infinite loops anywhere in the code nor php errors logged.
I just don't understand why I have these CPU usage peaks, any ideas?
I can post the code if anyone want.
Thanks in advance,
Jjth
PS : I apologize for any errors I could have made in my post, I'm not english, if you don't understand anything just ask and I'll try to explain what I meant.
PS2 : see attachments :