LinuxQuestions.org
Visit Jeremy's Blog.
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 01-15-2014, 11:00 PM   #1
Iyyappan
Member
 
Registered: Dec 2008
Location: Chennai, India
Distribution: CentOS 5, SLES 11
Posts: 245

Rep: Reputation: 4
Will Zombie process cause kernel panic ?


We have a java related app running in a server and many scripts to monitor the java app functionality scheduled in crons. We have similar setup for many servers, but in only select servers, we find few defunct process (java apps). At times servers becomes inaccessible and we depend on our onsite guys to do a hard reboot...in most cases its kernal panic...and when ever there is kernel panic, there are many defunct process.....
as zombie does not occupy resources, but it does occupy the PIDs....but i m not sure whether many zombie will lead to kernel panic......
 
Old 01-16-2014, 12:19 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by Iyyappan View Post
We have a java related app running in a server and many scripts to monitor the java app functionality scheduled in crons. We have similar setup for many servers, but in only select servers, we find few defunct process (java apps). At times servers becomes inaccessible and we depend on our onsite guys to do a hard reboot...in most cases its kernal panic...and when ever there is kernel panic, there are many defunct process.....
as zombie does not occupy resources, but it does occupy the PIDs....but i m not sure whether many zombie will lead to kernel panic......
Zombies by themselves don't cause a panic. They are simply processes who exited and are still waiting for the parent process to clean them up. I.e. each process will be a zombie when it exits, but under normal circumstances it will disappear quickly.

It could be helpful to know what panic occurs.
 
Old 01-16-2014, 03:06 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
@Iyyappan: Zombie processes can be the (indirect) cause for a kernel panic.

In normal circumstances a process is cleaned up (as described by berndbausch), but in that case we do not talk about a zombie process (although technically they are for a very short time).

A "real" zombie process doesn't have a parent any more and as a result the process will stay in the process list and use 1 PID (resources ARE used,). If the system runs out of PID's it can assign the result will be a kernel panic (or at least a completely unresponsive system).

If a badly written program (one that creates one or more zombie processes for instance) is launched from cron on a very regular base the system will run out of PID's it can assign at some point.

There isn't enough information in your first post to determine what is going on in your case and the cause might be something else altogether. My guess would be that one of the (java) applications causes the kernel panic.
 
Old 01-17-2014, 12:15 AM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by druuna View Post
A "real" zombie process doesn't have a parent any more
Admittedly I only know UNIX at that level; Linux may be different. On a UNIX system, a process always has a parent, and if that parent dies, the process is "adopted" by process #1, i.e. the init process. If the adopted process is a zombie, init will immediately clean it up.
But of course, this is not what the original poster wanted to know.

Quote:
There isn't enough information in your first post to determine what is going on in your case and the cause might be something else altogether. My guess would be that one of the (java) applications causes the kernel panic.
As you hinted, the careless creation of zombie processes could be a cause for exhausting kernel resources and, as a consequence, a panic or at least an inaccessible system. But to be more certain we would need to know what kind(s) of panic occurred.
 
  


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
[SOLVED] zombie process yashfire007 Linux - Newbie 2 04-05-2013 10:11 AM
Zombie process awanish.tiwari Linux - Newbie 5 01-21-2011 12:45 PM
Zombie Process, But Threads Running. Logs say Unable to handle kernel paging request. nkataria Linux - Software 3 04-04-2009 03:41 AM
Zombie Process N|k0N Linux - Security 8 09-22-2007 02:01 AM
zombie process ihatecomputers Linux - Software 2 03-24-2005 07:09 AM

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

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