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 05-15-2010, 11:09 AM   #1
sushantchawla2005
Member
 
Registered: Jun 2009
Location: India
Distribution: All flavours of linux
Posts: 93

Rep: Reputation: 14
Question Trace number of connections & threads in apache server


Dear All

I want to know the number of active connections & threads for my apache server. Please help

Regds
Sushant Chawla
Linux Administrator
 
Old 05-15-2010, 11:42 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by sushantchawla2005 View Post
Dear All
I want to know the number of active connections & threads for my apache server. Please help

Regds
Sushant Chawla
Linux Administrator
Then look it up, as you could have done with your OTHER two threads, that could have easily been found by a quick Google search.

http://httpd.apache.org/docs/2.0/mod/mod_status.html

or use
Code:
netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1
tcpdump -nnqt dst host server_IP and tcp dst port 80
tcpdump -npi eth0 port http
 
Old 05-15-2010, 11:22 PM   #3
sushantchawla2005
Member
 
Registered: Jun 2009
Location: India
Distribution: All flavours of linux
Posts: 93

Original Poster
Rep: Reputation: 14
Quote:
Originally Posted by TB0ne View Post
Then look it up, as you could have done with your OTHER two threads, that could have easily been found by a quick Google search.

http://httpd.apache.org/docs/2.0/mod/mod_status.html

or use
Code:
netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1
tcpdump -nnqt dst host server_IP and tcp dst port 80
tcpdump -npi eth0 port http
Firstly many many thanks for replying....

Yes I have googled it & found out the same solution. Just wanted to confirm with you all masters. Please tell me one more thing, what is the difference between connection & thread of apache server?

Regds
Sushant Chawla
 
Old 05-16-2010, 08:23 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by sushantchawla2005 View Post
Firstly many many thanks for replying....
Yes I have googled it & found out the same solution. Just wanted to confirm with you all masters. Please tell me one more thing, what is the difference between connection & thread of apache server?
Regds
Sushant Chawla
Look it up yourself:
http://www.google.com
 
  


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
some threads are become unnoticed because of large number of continious threads deepak_cucek LQ Suggestions & Feedback 9 08-20-2009 11:21 PM
How to trace and disable the HTTP TRACE method in Apache 1.3.33 with FreeBSD? SomnathG Linux - Security 1 11-11-2008 09:41 AM
Limit number of concurrent connections in apache jakev383 Linux - Server 2 07-18-2008 03:58 PM
Limit connections to apache web server PlymWS Linux - Server 1 09-21-2007 01:19 PM
server lag with high number of simultaneous connections ljohnny Red Hat 6 05-16-2007 12:15 PM

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

All times are GMT -5. The time now is 09:41 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