Networking Forums

Networking Forums > Computer Networking > Linux Networking > mapping /proc/PID with proper URL

Reply
Thread Tools Display Modes

mapping /proc/PID with proper URL

 
 
jean-francois
Guest
Posts: n/a

 
      12-24-2005, 07:50 PM
Hi

Let say that I have a server which is hosting different domains; I
want to map a specific PID, like /proc/PID/ with the domain that is
using it with apache. It can be that way or another way, but I wish to
get the relation between the PID and the URL that is using an HTTP
process. How can I do this?

 
Reply With Quote
 
 
 
 
David Schwartz
Guest
Posts: n/a

 
      12-25-2005, 12:32 AM

"jean-francois" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ups.com...

> Let say that I have a server which is hosting different domains; I
> want to map a specific PID, like /proc/PID/ with the domain that is
> using it with apache. It can be that way or another way, but I wish to
> get the relation between the PID and the URL that is using an HTTP
> process. How can I do this?


Your question is very hard to understand because you don't explain the
context. For example, would a program that listed each apache child and what
is was doing solve your problem? If not, why not?

When you say "I wish to get the relation", what is the "I"? Is this an
Apache module? A script handling a URL? A human being doing some debugging?

DS


 
Reply With Quote
 
jean-francois
Guest
Posts: n/a

 
      12-25-2005, 01:49 AM
Ok, I'm doing ps -ef or either ps -aux, and a part of the processes
that are displayed are httpd processes, apache processes. But the same
apache server manage many domains hosted on this server; so how can I
know if the process 'X' that looks like:

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU
COMMAND
15122 apache 15 0 18508 18M 7732 S 1.8 0.9 0:00 2 httpd

is dealing with a user who logged on on www.xxx.com or either
www.yyy.com if both domains are on the same server?

 
Reply With Quote
 
David Schwartz
Guest
Posts: n/a

 
      12-25-2005, 03:27 AM

"jean-francois" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com...
> Ok, I'm doing ps -ef or either ps -aux, and a part of the processes
> that are displayed are httpd processes, apache processes. But the same
> apache server manage many domains hosted on this server; so how can I
> know if the process 'X' that looks like:
>
> PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU
> COMMAND
> 15122 apache 15 0 18508 18M 7732 S 1.8 0.9 0:00 2 httpd
>
> is dealing with a user who logged on on www.xxx.com or either
> www.yyy.com if both domains are on the same server?


Enable extended status on your web server through the httpd.conf file.
The just retrieve the '/server-status' page.

DS


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding the IPs of up interfaces in /proc Linux Networking 2 04-10-2012 12:11 PM
What is tw at /proc/net/sockstat?! bh98013@gmail.com Linux Networking 3 06-06-2006 10:38 AM
4gb limit count /proc/net/dev regis1 Linux Networking 2 05-03-2004 05:40 PM
/proc/net/ip_fprward?? Ishwar Rattan Linux Networking 4 07-17-2003 02:41 AM
/proc/net/ip_fprward?? Ishwar Rattan Linux Networking 1 07-16-2003 08:53 PM



1 2 3 4 5 6 7 8 9 10 11