Host Claims my php Files are Causing Server Problems
Posted: Mon May 03, 2010 9:06 pm
Hi -
My host keeps claiming that some of my php files are causing server problems. Specifically, they say they are causing high server load and maybe even crashing the server. They have even gone as far as to suspend my account today... Even though they say they are not sure if it is really my code that caused their server issues. About their server they said, "Its an old server that is really just maxed out with accounts." Great...
They also said that two of my files were eating up 99% of the server's processor resources. The only way I can see that happening is if I had some infinite loop. Maybe it could also happen if their server happened to have problems when it was processing my scripts. Any thoughts on that? I'm just not sure if it is my problem or their problem...
I have gone over my code time and time again looking for problematic code. I don't think the code can get much more efficient. When I deal with arrays, I make mySQL calls specific enough so that I deal with arrays that only have the information I need for that function/process. I do not see any infinite loops or anything that is clearly bad like that.
Also, the problem seems to be intermittent. When I have been checking the server load lately its usually reasonable. So that makes it even harder to troubleshoot. Any ideas about what can cause this kind of intermittent behavior with php scripts that sometimes use mySQL calls?
Another thought: I don't really use any error handling. Could this be contributing to problems in anyway?
Thanks.
My host keeps claiming that some of my php files are causing server problems. Specifically, they say they are causing high server load and maybe even crashing the server. They have even gone as far as to suspend my account today... Even though they say they are not sure if it is really my code that caused their server issues. About their server they said, "Its an old server that is really just maxed out with accounts." Great...
They also said that two of my files were eating up 99% of the server's processor resources. The only way I can see that happening is if I had some infinite loop. Maybe it could also happen if their server happened to have problems when it was processing my scripts. Any thoughts on that? I'm just not sure if it is my problem or their problem...
I have gone over my code time and time again looking for problematic code. I don't think the code can get much more efficient. When I deal with arrays, I make mySQL calls specific enough so that I deal with arrays that only have the information I need for that function/process. I do not see any infinite loops or anything that is clearly bad like that.
Also, the problem seems to be intermittent. When I have been checking the server load lately its usually reasonable. So that makes it even harder to troubleshoot. Any ideas about what can cause this kind of intermittent behavior with php scripts that sometimes use mySQL calls?
Another thought: I don't really use any error handling. Could this be contributing to problems in anyway?
Thanks.