Host Claims my php Files are Causing Server Problems

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
zenthoef
Forum Newbie
Posts: 3
Joined: Tue Mar 16, 2010 9:11 pm

Host Claims my php Files are Causing Server Problems

Post by zenthoef »

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.
JakeJ
Forum Regular
Posts: 675
Joined: Thu Dec 10, 2009 6:27 pm

Re: Host Claims my php Files are Causing Server Problems

Post by JakeJ »

Without posting your code, there's really no way to know. You might have certain conditions that trigger a loop and that's why it only happens intermittently.
Post Reply