- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How many zombie processes is too many?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2004 03:32 AM
тАО07-29-2004 03:32 AM
I have zombie (oracle) processes on 2 production HP9000 N4000 database servers. The number of defunct processes increasing 5 - 7 per day. So far they (50 defunct) do not take up much CPU or memory resource yet. What is the maximum number of zombies that I should consider to reboot the servers?
Thank you for your help in advance.
Best regards,
Jan Shu
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2004 03:46 AM
тАО07-29-2004 03:46 AM
Solutionthat sloppy practices are in play.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2004 03:47 AM
тАО07-29-2004 03:47 AM
Re: How many zombie processes is too many?
If you can't get them will a kill -9 you have to boot to fix it.
The fact that your system is breeding zombies is bad and can hurt peformance a lot. Check the owner of the processes and contact the application vendor. You need to do something to the app to make this stop.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2004 03:48 AM
тАО07-29-2004 03:48 AM
Re: How many zombie processes is too many?
The real cause of worry should be why those many zombies?? What are they waiting for?? Those are in kernel mode and are waiting for I/O to get completed.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2004 03:48 AM
тАО07-29-2004 03:48 AM
Re: How many zombie processes is too many?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2004 04:02 AM
тАО07-29-2004 04:02 AM
Re: How many zombie processes is too many?
Last year, we found one of our systems spawning zombies at a rate of 2-3 per hour. It turned out that a trap statement had been added to one of the scripts, that prevented the processes from dying when the users logged out by just switching off their terminals.
The trap statement was
trap "" 1 2 3
This was amended to
trap "" 2 3
which resolved the problem. signal 1 is the SIGHUP signal (use kill -l to list the signals)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2004 04:38 AM
тАО07-29-2004 04:38 AM
Re: How many zombie processes is too many?
A zombie is a dead program, which is why they are called zombies and cannot be killed with kill -9 (they're already dead). Since there is no code in memor and nothing is executing, the only resource is the process table, sized by nproc in the kernel. If you get thousands, there will be a point where not even root can login because no more processes can be run (no room in the process table). AS mentioned, zombies are an indication of unintentional oversights (OK, bad programming) an never happen on a well managed system. Since they are Oracle processes, the first step is to consult the Oracle knowledge base and the second is probably to apply the latest patches.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2004 04:44 AM
тАО07-29-2004 04:44 AM
Re: How many zombie processes is too many?
there shouldn't be any zombie, well administrated system should be free of zombie because they can consume lot of CPU or memory and thus decrease server performance.
So try figure out the cause of the zombies, to clear them try kill, kill -9 or if it is possible ( be carefull! ) kill PPID
br Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2004 01:33 AM
тАО07-30-2004 01:33 AM
Re: How many zombie processes is too many?
The vendor is working on a patch to fix the problem but we have to live with these zombies for a sometime. That is why Jan is asking about the number of zombies that should trigger a red light and lead to a reboot.
Any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2004 02:24 AM
тАО07-30-2004 02:24 AM
Re: How many zombie processes is too many?
Bill's description is right on the money. Zombie processes are the result of the parent process not cleaning up after it's child process has died. In order for this cleanup to occur, the Parent process must issue a "wait" system call. The "wait" system call will return the staus of the child process, usually the return or exit code of the dead child. Until the parent process issues the "wait" or the parent dies, the kernel will maintin the dead child's status in the form of a zombie process. THE ZOMBIE PROCESS DOES NOT CONSUME ANY MEMORY OR CPU RESOURCES, it is just using one entry in the nproc table.
If the parent process does not care about the status of its children (dead or alive) then that parent process should ignore the SIGCHLD signal. Doing so tells the kernel that the parent process does not care about the death of its children and the kernel will not save the process status when any of its children die, thus preventing the zombie proccesses from being created.
Now, there are anly three ways to get rid of zombie processes.
1) The parent must issue the "wait" system call. We already know that this is not going to happen, so that's out. At least not until the third party vendor fixes their code.
2) The parent process of the zombies dies. When a parent process dies (even zombies have a parent) all of its children,including the zombies, get owned by the "init" process. The "init" process will automatically isue the "wait" system call for each of the orphaned zombie processes that it inheirents. So, killing the zombie's parent process would cause the zombies to get removed. This may or may not be an option.
3) You reboot the sytem.
Hope that helps.
-JL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2004 02:36 AM
тАО07-30-2004 02:36 AM
Re: How many zombie processes is too many?
I would really press the software vendor to explain the problem. If the explanations seem less than clear, that indicates that the developers don't have a firm grasp of the underlying problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2004 02:46 AM
тАО07-30-2004 02:46 AM
Re: How many zombie processes is too many?
Thanks for your help. I will set up this cron to monitoring nproc.
Have a great weekend.
Best Regards,
Jan