LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Trace number of connections & threads in apache server (https://www.linuxquestions.org/questions/linux-server-73/trace-number-of-connections-and-threads-in-apache-server-808021/)

sushantchawla2005 05-15-2010 11:09 AM

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

TB0ne 05-15-2010 11:42 AM

Quote:

Originally Posted by sushantchawla2005 (Post 3969697)
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


sushantchawla2005 05-15-2010 11:22 PM

Quote:

Originally Posted by TB0ne (Post 3969720)
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

TB0ne 05-16-2010 08:23 AM

Quote:

Originally Posted by sushantchawla2005 (Post 3970220)
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


All times are GMT -5. The time now is 08:50 AM.