LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 12-10-2012, 10:25 AM   #1
Larry James
Member
 
Registered: Jun 2000
Location: Buffalo, New York
Distribution: Fedora, Ubuntu
Posts: 343

Rep: Reputation: 38
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
 
Old 12-10-2012, 11:42 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,373

Rep: Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get the virtual addresses accessed by an application during its execution? rookieiitg Linux - Newbie 2 03-18-2010 06:24 AM
How to get the virtual addresses accessed by an application during its execution? rookieiitg Linux - General 2 03-18-2010 05:25 AM
How to get the virtual addresses accessed by an application during its execution? rookieiitg Linux - Software 1 03-17-2010 05:35 AM


All times are GMT -5. The time now is 03:16 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration