LinuxQuestions.org
Review your favorite Linux distribution.
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 06-01-2009, 02:22 AM   #1
masenko703
Member
 
Registered: May 2003
Posts: 33

Rep: Reputation: 15
Apache question, Kinda newb


Hi guyz,
I just have a quick question, I run the following 2 commands:

# ps -ef | grep httpd
root 16345 1 15 03:17 ? 00:00:00 /usr/sbin/httpd
httpd 16347 16345 0 03:17 ? 00:00:00 /usr/sbin/httpd
httpd 16348 16345 0 03:17 ? 00:00:00 /usr/sbin/httpd
httpd 16349 16345 0 03:17 ? 00:00:00 /usr/sbin/httpd
httpd 16350 16345 0 03:17 ? 00:00:00 /usr/sbin/httpd
httpd 16351 16345 0 03:17 ? 00:00:00 /usr/sbin/httpd
httpd 16352 16345 0 03:17 ? 00:00:00 /usr/sbin/httpd
httpd 16353 16345 0 03:17 ? 00:00:00 /usr/sbin/httpd
httpd 16354 16345 0 03:17 ? 00:00:00 /usr/sbin/httpd

AND

# netstat -na | grep :80 | grep EST
<snipet>
tcp 0 0 128.121.251.105:80 211.120.54.246:26368 EST
tcp 0 0 128.121.251.105:80 219.122.41.101:48000 EST
tcp 0 0 128.121.251.105:80 72.30.87.96:56648 EST
.
.


I was wondering, what the difference between the /usr/sbin/httpd in the ps command and the ESTABLISHED connection in the netstat command? Thanks for the help.
 
Old 06-01-2009, 03:13 AM   #2
blacky_5251
Member
 
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 573

Rep: Reputation: 61
The output from the ps command is showing the 8 or so processes started by Apache when launched (the number is configurable). These processes are running waiting for users from web-land to connect to your web server. Each new connection is directed to one of these 8 processes.

Netstat is showing you that three of them are currently connected to real users. The others are still waiting for a connection request.

The Apache config file determines how many are started at boot time (default = 8), how long they live before being killed off and replaced with fresh processes, and how many free process (a lower limit) are there before more are started (to deal with increased loads).
 
Old 06-01-2009, 04:54 AM   #3
masenko703
Member
 
Registered: May 2003
Posts: 33

Original Poster
Rep: Reputation: 15
DUDE!!! THANKS ALOT!!!! I really appreciate it!!!!
 
  


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
Sendmail, kinda working, kinda borken Sizam Red Hat 1 02-08-2005 12:16 PM
X Question (kinda) Sherlok Slackware 5 10-14-2004 08:24 PM
basic proftp questions - kinda works kinda don't case1984 Linux - Newbie 4 11-06-2003 12:29 AM
newb apache log question spooge Linux - Security 1 03-08-2003 07:14 PM
I am kinda almost done with Apache. Just one thing though. PenguinMan Linux - Networking 4 10-23-2002 12:15 AM

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

All times are GMT -5. The time now is 03:44 PM.

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