LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-25-2004, 02:37 AM   #1
Neelix1976
LQ Newbie
 
Registered: Aug 2004
Posts: 5

Rep: Reputation: 0
How to identify httpd jobs on SuSE 9.0?


Hi there!

I have several apache calls via lynx at night. Every morning two jobs are still there and running, and I don't know which these are. In /var/log/https/access_log aren't any calls logged at the time the jobs started refering to ps.

Is there a possibility to find out which calls are still running in the morning?

Thanx
Neelix
 
Old 08-25-2004, 03:28 AM   #2
Thoreau
Senior Member
 
Registered: May 2003
Location: /var/log/cabin
Distribution: All
Posts: 1,167

Rep: Reputation: 45
How do you know there are jobs still running if you can't find or see them running? I don't get that. General rule, for processes- ps aux, for network netstat -an. I don't know what else you're looking for exactly. If you mean a process trace like ptrace, that will show subthreads, then that's another. but I'm still kinda lost here.

Last edited by Thoreau; 08-25-2004 at 03:30 AM.
 
Old 08-25-2004, 06:43 AM   #3
Neelix1976
LQ Newbie
 
Registered: Aug 2004
Posts: 5

Original Poster
Rep: Reputation: 0
I see the processes as
Code:
/usr/sbin/httpd -f /etc/httpd/httpd.conf
in the processlist, so I have their pid and the time they started, but there isn't an entry in the access_log at this time. So how do I know which two of my scripts are still running?

Neelix
 
Old 08-25-2004, 06:50 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
They don't show up with a: ps -aux | grep httpd ?
 
Old 08-25-2004, 08:00 AM   #5
Neelix1976
LQ Newbie
 
Registered: Aug 2004
Posts: 5

Original Poster
Rep: Reputation: 0
They DO show up:

Code:
wwwrun    5106  4.4  0.9 100404 19364 ?      S    04:29  28:05 /usr/sbin/httpd -f /etc/httpd/httpd.conf
wwwrun    6539  3.3  0.8 97924 16816 ?       S    05:00  19:54 /usr/sbin/httpd -f /etc/httpd/httpd.conf
But what next?

Neelix
 
Old 08-25-2004, 01:41 PM   #6
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Do you have any sort of log rotation / httpd restart scripts? How do you know their "started with lynx" if there are no entries in the access log? These could simply be the normal child processes for your httpd daemon if it was built with the prefork module.
 
Old 08-26-2004, 01:42 AM   #7
Neelix1976
LQ Newbie
 
Registered: Aug 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Ok, you are right: I *think* that these are two of the scripts started over night with lynx, but I don't really know. Last night the two scripts started both at 4:15am and are still running with 3 and 16 percent cpu time. There is indeed a log rotation running, and the last days files were always rotated at exact 4:15am. But yesterday the jobs startet at 4:29am and 5:00am.

How can I find out if these processes are normal child processes or still running http-scripts?
 
Old 08-26-2004, 10:23 AM   #8
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Why do suspect lynx? Do you see lynx in your process table? Lynx is a terminal browser, and it's not used to start Apache. What you are seeing is probably a log rotation or cron script. Check your ps output to see what the parent process is.
 
Old 08-27-2004, 01:28 AM   #9
Neelix1976
LQ Newbie
 
Registered: Aug 2004
Posts: 5

Original Poster
Rep: Reputation: 0
The parent process is another httpd process, obviously the root apache process:

Code:
root     21906     1  0 Aug26 ?        00:00:07 /usr/sbin/httpd -f /etc/httpd/httpd.conf
...
wwwrun   15515 21906  6 04:29 ?        00:15:05 /usr/sbin/httpd -f /etc/httpd/httpd.conf
wwwrun   16450 21906  7 04:49 ?        00:15:07 /usr/sbin/httpd -f /etc/httpd/httpd.conf
Neelix
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
httpd.conf not working: Apache 1.3.27 on SUSE 8.x Options zentro SUSE / openSUSE 0 09-30-2005 11:53 AM
SuSE 9.2 cron jobs as regular user vic_semionov SUSE / openSUSE 0 12-05-2004 06:28 AM
service httpd status, results in httpd dead but subsys locked squadja Red Hat 2 09-11-2004 10:31 PM
suse wont identify my ethernet port rbk25 Linux - Networking 5 06-20-2004 01:40 PM
httpd chokes on ScriptAlias line in Apache httpd.conf lhoff Linux - Software 1 07-14-2003 10:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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