LinuxQuestions.org
Review your favorite Linux distribution.
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-06-2008, 10:30 AM   #1
investmentbnker75
Member
 
Registered: Oct 2007
Location: Eastern Seaboard
Distribution: CentOS
Posts: 162

Rep: Reputation: 15
Stale process defined


Can someone give me their best definition of a "stale process".

For example, grepping for apache, everything looks normal but apache isnt doing what it normally does. But after you restart it, it begins to function properly again.

Thanks,
 
Old 08-06-2008, 10:49 AM   #2
ophirg
Member
 
Registered: Jan 2008
Location: Israel
Distribution: Kubuntu 13.10
Posts: 134

Rep: Reputation: 34
where did you see the term "stale process"?
maybe a sleeping process or a zombie process?

a stale process is not a state of a process. it's a policy for waiting on a specific condition. the process waits until a file with the name of its pid doesn't exist.

i don't think you can say any process can be a stale process

update: i'm not sure it has to be the process's pid

Last edited by ophirg; 08-06-2008 at 11:10 AM.
 
Old 08-06-2008, 09:03 PM   #3
investmentbnker75
Member
 
Registered: Oct 2007
Location: Eastern Seaboard
Distribution: CentOS
Posts: 162

Original Poster
Rep: Reputation: 15
I appreciate the input but ill have to disagree with you there. I have seen and heard the term stale process, i have seen it apply to apache where a ps -auwx|grep apache ( or httpd) looks normal but the site hangs and a telnet to the ip on port 80 reports nothing. A restart of apache has everything responding properly again.

I was looking for an exact definition, maybe someone can help define it better?

Thanks
 
Old 08-06-2008, 09:16 PM   #4
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
There's is no state in the kernel that means "stale". This is layman's terms for "stuck", "hung", and appears not to be doing anything useful.

It sounds like you're more concerned with why apache isn't responding. Perhaps we can focus on that. What is the data you see that fits your description?
 
Old 08-07-2008, 09:57 AM   #5
ophirg
Member
 
Registered: Jan 2008
Location: Israel
Distribution: Kubuntu 13.10
Posts: 134

Rep: Reputation: 34
mr c

it is true that it isn't a kernel term, but it is not a layman's term for stuck or hang. it is much more specific.
a stale event, as i understand it, waits on a specific event that i've described earlier.
it's not necessarily in a deadlock and i don't think it has to be blocked(in a kernel sense). but it is waiting.
 
Old 08-07-2008, 11:38 AM   #6
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
If the goal is to discuss a definition, so be it, and I'll move on.

However, if the goal is to resolve a problem, please stop haggling over terms, or speculating about what is going on inside the kernel, and instead please let us focus on the problem. We need to see evidence and configuration for apache and system security measures.

All we know is the OP reporting that:

1) the site hangs
2) telnet to the ip does nothing

We need to understand (see):
1) the output of ps -elf for the apache processes.
2) how your apache is configured
3) how your security measures are configured(selinux, iptables, apparmor, etc.)
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
"No root file system is defined" - During installation process of Ubuntu Trinric Linux - Newbie 7 02-14-2011 12:44 PM
stale partitions sa7306 AIX 1 05-29-2007 01:28 PM
where defined(__i386) is being defined?? syseeker Programming 1 06-27-2006 06:24 AM
[Multiuser Runlevel] executing a process with a defined user MD3 Linux - Software 2 04-12-2005 02:23 PM

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

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