Need help with PHP bug

I was hoping to get some help with a strange issue I've run across with my php web app.

Basically, my site says the following:

Unable to start another process
Maximum number of processes reached, refreshing in 10 seconds.

I'm sure I did something to cause this but I cannot figure out what.  I've removed any code that could cause this - the index.php now just reads:
<?php ?>

Open in new window

  and I am still getting the error page.  

Can some explain what could have caused this and what can be done to reverse it?
MikeDelaneyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

GaryCommented:
Is this on a server or localhost? Have you got any scripts spawning lots of processes?
Have you tried restarting the server
0
MikeDelaneyAuthor Commented:
This is a hosted server so I do not have the option of restarting.  I can ask my host to bounce the VM (I'm guessing it's on a VM.)  But, I wasn't going to do that until I had a better idea of what's causing it (So I don't have to ask them to bounce it again.)

I'm guessing that there some kind of "process leak" if that's even possible - but I'm not sure what to look for.

Any thoughts?
0
Dave BaldwinFixer of ProblemsCommented:
Do you have a PHP page that calls or loads other PHP pages on your site?  You could have a loop going that uses up your resources.
0
CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

GaryCommented:
It's a case of going through your scripts looking for any suspicious loops that for example are doing other calls.
Could also be something external - like ajax calls to the server.
Maybe ask the host if they can have a look and identify the page/script

Is this a new thing? Something you've changed has caused it?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dave BaldwinFixer of ProblemsCommented:
I wouldn't be so hesitant to ask them for assistance.
0
MikeDelaneyAuthor Commented:
This is definitely new code as I am building a php web based app.  I was attempting to objectify all of the pages making them classes.  So, the problem being a recursive loop or something like that seem almost probable to me.  But, at this point I've disabled all of that with the primary page doing nothing.  It should simply show a blank page.  So, I'm now wondering if It's time to reach out to the host.
0
Dave BaldwinFixer of ProblemsCommented:
If you have copies of your files, you can just delete them and leave a simple index.html on your site to see if the problem stops.  If there is nothing but index.html there and the problem continues, then it is not your problem after all and the host must solve it.
0
MikeDelaneyAuthor Commented:
Thanks guys.  My host was able to kill the offending processes.  They also supplied a list of them as well.  Turns out that it was just the index.php for the most part.  I believe that this is born of my lack of understanding of the 'lifespan of a Process' and why they didn't die when the browser was closed.  So, I don't think I'll be reactivating my app until I get a deeper knowledge of how this works.  (Maybe I'll create a LAMP so that I have complete control of the sandbox.)  

In any regard, thanks so much for your help - it's greatly appreciated.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.