LinuxQuestions.org
Help answer threads with 0 replies.
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-25-2007, 07:38 AM   #1
jaggy00
LQ Newbie
 
Registered: Jan 2007
Distribution: CentOS & Fedora Core
Posts: 25

Rep: Reputation: 15
a lot of http process initiated by the server itself??..


here is a piece of netstat -an:

Quote:
...
tcp 60 0 212.58.98.220:80 212.58.98.220:53987 ESTABLISHED
tcp 60 0 212.58.98.220:80 212.58.98.220:53988 ESTABLISHED
tcp 60 0 212.58.98.220:80 212.58.98.220:53992 ESTABLISHED
tcp 60 0 212.58.98.220:80 212.58.98.220:53994 ESTABLISHED
tcp 60 0 212.58.98.220:80 212.58.98.220:53999 ESTABLISHED
tcp 60 0 212.58.98.220:80 212.58.98.220:54000 ESTABLISHED
tcp 60 0 212.58.98.220:80 212.58.98.220:54001 ESTABLISHED
tcp 60 0 212.58.98.220:80 212.58.98.220:54005 ESTABLISHED
tcp 60 0 212.58.98.220:80 212.58.98.220:54009 ESTABLISHED
tcp 60 0 212.58.98.220:80 212.58.98.220:54014 ESTABLISHED
tcp 60 0 212.58.98.220:80 212.58.98.220:54018 ESTABLISHED
...
there are nearly 150 of them. what could they be? is it result of bad php programming?

any help appreciated.
 
Old 06-25-2007, 03:54 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,369
Blog Entries: 54

Rep: Reputation: 2867Reputation: 2867Reputation: 2867Reputation: 2867Reputation: 2867Reputation: 2867Reputation: 2867Reputation: 2867Reputation: 2867Reputation: 2867Reputation: 2867
Do the processes belong to the same session ID?
(ps -eo pid,sid,uid,command -f -U apache) where apache is the username
Do the processes have PIDs attached? (netstat -ntp|grep httpd)
Can you see for those PIDs which files they have open?
Any of those open files in temp dirs or other odd locations?
(lsof -w -n -p $PID) where $PID is a PID out of your netstat list?
Does Apache's access and error log (and PHP's error_log) (or syslog) show any weirdness?
 
Old 06-29-2007, 04:57 AM   #3
jaggy00
LQ Newbie
 
Registered: Jan 2007
Distribution: CentOS & Fedora Core
Posts: 25

Original Poster
Rep: Reputation: 15
Quote:
Do the processes belong to the same session ID?
yes, they do. as far as I see however.

Quote:
(ps -eo pid,sid,uid,command -f -U apache) where apache is the username
Do the processes have PIDs attached? (netstat -ntp|grep httpd)
Can you see for those PIDs which files they have open?
Any of those open files in temp dirs or other odd locations?
(lsof -w -n -p $PID) where $PID is a PID out of your netstat list?
they do not have any PID. and as long as I could monitor them, they were in TIME_WAIT condition. what could that mean?

Quote:
Does Apache's access and error log (and PHP's error_log) (or syslog) show any weirdness?
lot of programming issues. lot of 404 errors. logs grow up very quickly. however programmers do not correct those errors. this is very wierd I'd say. but nothing else as far as I see.

why web-server could need this kind of connection to itself?
 
  


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
monodoc-http gives a http 500 internal server error ernesto_cgf Linux - Software 0 05-10-2007 03:48 PM
A lot of processes run automatically when I run a single process. dalvirgautam Linux - Enterprise 4 12-01-2006 06:10 PM
debian sarge server uses a lot of memory cccc Debian 2 08-08-2005 04:56 PM
Xorg, xinitrc not being initiated lukebeales Linux - Software 0 09-14-2004 05:41 AM
Konqueror: The process for the http:// ... protocol died unexpectedly SparceMatrix Linux - Software 2 08-30-2002 05:15 AM


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

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