LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Which virtual host is being accessed (https://www.linuxquestions.org/questions/linux-server-73/which-virtual-host-is-being-accessed-4175440823/)

Larry James 12-10-2012 10:25 AM

Which virtual host is being accessed
 
Can someone tell me how to determine which virtual servers are accessed by the instances of running web tasks. The tasks are:

Code:

ljames@hera5:~$ ps -fu www-data
UID        PID  PPID  C STIME TTY          TIME CMD
www-data  2871  6787  0 09:10 ?        00:00:10 /usr/sbin/apache2 -k start
www-data  4213  6787  0 09:39 ?        00:00:03 /usr/sbin/apache2 -k start
www-data 10268  6787  0 09:42 ?        00:00:02 /usr/sbin/apache2 -k start
www-data 10333  6787  0 09:44 ?        00:00:01 /usr/sbin/apache2 -k start
www-data 12424  6787  0 09:18 ?        00:00:08 /usr/sbin/apache2 -k start
www-data 12425  6787  0 09:18 ?        00:00:08 /usr/sbin/apache2 -k start
www-data 12428  6787  0 09:18 ?        00:00:07 /usr/sbin/apache2 -k start
www-data 12430  6787  0 09:18 ?        00:00:07 /usr/sbin/apache2 -k start
www-data 12431  6787  0 09:18 ?        00:00:08 /usr/sbin/apache2 -k start
www-data 18334  6787  0 09:21 ?        00:00:06 /usr/sbin/apache2 -k start
ljames@hera5:~$

I have a number of virtual web hosts on this machine and would like to know which one is dragging the system down on recurring occasions of system overload.

Thanks in advance for any suggestions on this.

– L. James


L. D. James
ljames@apollo3.com
www.apollo3.com/~ljames

acid_kewpie 12-10-2012 11:42 AM

you can hit the server-status page on the box if you have allowed it to be configured. additionally you can look at the access and error log files that you should find under /var/log/httpd or similar. Clutching at straws you can also see what files are being held open by those processes from the output of lsof, but that might not mean all that much.


All times are GMT -5. The time now is 02:27 PM.