LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 04-01-2010, 02:11 PM   #1
sopiaz57
Member
 
Registered: Apr 2003
Distribution: RH 8
Posts: 246

Rep: Reputation: 30
show the busy virtual hosts


Hi All,

I have an apache server runing on CENTOS 5.x,

Server version: Apache/2.2.3



I was wondering if anyone has a solution where I could see utilization inside my apache process. I would like to see which of my virtual hosts are most busy,

Thanks in advance
 
Old 04-01-2010, 05:06 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
If you want to see present connections you could do something like this if they're on separate ips--

Code:
netstat -plan | grep ":[443|80]" | awk '{print $4}' | sort -n | uniq -c | sort -n
If you're doing name based it's a bit harder, as you'd have to look at all the logs to determine the information.

You could also try apachetop.
 
Old 04-01-2010, 05:24 PM   #3
gumaheru
LQ Newbie
 
Registered: Nov 2009
Posts: 20

Rep: Reputation: 0
There is a really cool module to watch what is going on in apache in real time. It is called mod_status. Here is a page with a quick how to. http://www.cyberciti.biz/faq/apache-server-status/
Here is what you see when you set this up.
http://www.apache.org/server-status
 
Old 04-02-2010, 10:36 AM   #4
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
If you have mod_status enabled you can also do a 'apachectl status' at the command line and get the same information at the prompt, or alternately 'watch -n10 apachectl status' and it'll update every 10s.
 
  


Reply



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
fping usage to show only reachble hosts Ole Juul Linux - Networking 1 04-12-2009 12:00 PM
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 06:29 AM
virtual hosts, virtual ip's? kuplo Linux - Newbie 3 11-29-2005 08:44 PM
Virtual Hosts!! chris Linux - General 4 02-03-2003 11:39 AM
Virtual Hosts chris Linux - General 1 11-20-2001 09:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration