processes: sleep

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mikeynl
Forum Newbie
Posts: 7
Joined: Wed Jan 28, 2009 6:58 am

processes: sleep

Post by mikeynl »

When I check the processes on my server I see there's often up to a few dozen processes that are actually asleep. I don't think I'm using persistent connections (I use mysql_connect) and I actually close the connections after the scrip has run with mysql_close($connection). So what are these sleeping processes?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: processes: sleep

Post by requinix »

What processes? Dunno, you're the one with the server.

Sleeping processes don't use CPU time. Don't worry about them.
mikeynl
Forum Newbie
Posts: 7
Joined: Wed Jan 28, 2009 6:58 am

Re: processes: sleep

Post by mikeynl »

Sorry, it's processes connecting the website to the database. Sometimes I get really dozens of them. The do seem to crash the server though.
Post Reply