PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Wed Nov 22, 2017 8:47 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue Apr 24, 2012 9:03 am 
Offline
Forum Newbie

Joined: Tue Apr 24, 2012 8:58 am
Posts: 1
I want to see what php code is hogging my server resources, but by a common task manager all I can see is a bunch httpd processes which do not tell me much, I want to know what php code called that new httpd process...how can I "unmask" this httpd processes to see what php code/web page called them?


Top
 Profile  
 
PostPosted: Tue Apr 24, 2012 11:22 am 
Offline
Briney Mod
User avatar

Joined: Mon Jan 19, 2004 7:11 pm
Posts: 6444
Location: 53.01N x 112.48W
You can't, because they didn't. The httpd processes are started & managed by the web server. Periodically, when a request comes in for a PHP file, one of those httpd processes will start a php process & run the file. As far as I know, the best you can do is run `top` & see if a php file comes to the top. You could also run ps -aux repeatedly to see if you can catch a PHP file being run. If you can't then I'd suggest PHP isn't really hogging your resources.

_________________
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group