LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 04-21-2020, 05:08 AM   #1
modifosi
LQ Newbie
 
Registered: Apr 2020
Posts: 1

Rep: Reputation: Disabled
Cannot kill many processes whose ppid is 1


Hello.
In a production system SunOS we found the same processes witth ppid = 1, so there must be going on with the application and there are more than 3k processes and increasing, for instance

Code:
ps -fu xpinvoice| grep launch_web|wc -l
    3086
Code:
bash-3.2$ ps -fea | grep launch_web
xpinvoice 56525     1   0 15:00:29 ?           0:00 sh //produccion/explotacion/xpinvoice/facturacion/ksh/launch_web.ksh -u/ -l3 -eFG
xpinvoice 68873     1   0 12:08:37 ?           0:00 sh //produccion/explotacion/xpinvoice/facturacion/ksh/launch_web.ksh -u/ -l3 -eFG
xpinvoice 15141     1   0 14:36:50 ?           0:00 sh //produccion/explotacion/xpinvoice/facturacion/ksh/launch_web.ksh -u/ -l3 -eFG
xpinvoice  6962     1   0 12:10:16 ?           0:00 sh //produccion/explotacion/xpinvoice/facturacion/ksh/launch_web.ksh -u/ -l3 -eFG
xpinvoice 69284     1   0 16:31:45 ?           0:00 sh //produccion/explotacion/xpinvoice/facturacion/ksh/launch_web.ksh -u/ -l3 -eFG
xpinvoice 37469     1   0 15:25:49 ?           0:00 sh //produccion/explotacion/xpinvoice/facturacion/ksh/launch_web.ksh -u/ -l3 -eFG
xpinvoice 48415     1   0 12:33:02 ?           0:00 sh //produccion/explotacion/xpinvoice/facturacion/ksh/launch_web.ksh -u/ -l3 -eFG
xpinvoice 47245     1   0 12:18:31 ?           0:00 sh //produccion/explotacion/xpinvoice/facturacion/ksh/launch_web.ksh -u/ -l3 -eFG
xpinvoice 62592     1   0 12:07:21 ?           0:00 sh //produccion/explotacion/xpinvoice/facturacion/ksh/launch_web.ksh -u/ -l3 -eFG
xpinvoice 66140     1   0 16:46:16 ?           0:00 sh //produccion/explotacion/xpinvoice/facturacion/ksh/launch_web.ksh -u/ -l3 -eFG
xpinvoice 15841     1   0 15:50:22 ?           0:00 sh //produccion/explotacion/xpinvoice/facturacion/ksh/launch_web.ksh -u/ -l3 -eFG
xpinvoice 11251     1   0 14:21:22 ?           0:00 sh //produccion/explotacion/xpinvoice/facturacion/ksh/launch_web.ksh -u/ -l3 -eFG
xpinvoice 26343     1   0 15:08:44 ?           0:00 sh //produccion/explotacion/xpinvoice/facturacion/ksh/launch_web.ksh -u/ -l3 -eFG
I could not kill those processes, so i escalete up this issue to our sys administrator who says there is no way to kill these processes because they are tied to the kernel, so it is necessary to restart the server, so these question come up:

1 its kind of odd to find the same processes with too many processes with ppid =1 ? so it has something to do with an application failure?

why did our sys admin say these processes are related to the kernel and its necessary to restart the server?

I appreciate your help in advanced?
 
Old 04-21-2020, 07:07 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 modifosi View Post
its kind of odd to find the same processes with too many processes with ppid =1 ? so it has something to do with an application failure?
That would be my first thought. Most probably, the parent(s) of these processes died, and they were adopted by init.
Quote:
why did our sys admin say these processes are related to the kernel and its necessary to restart the server?
These are shell processes. I don't know Solaris or SunOS, but I can't imagine that shell processes run in the kernel. Your sysadmin is almost certainly wrong.

What happens when you try to kill them? Such as kill -9 6962?

Is there nobody in your datacenter who knows what application that is and how to troubleshoot it? Are there any log files?

EDIT: The // at the start of the filenames could indicate that the scripts are located at a remote server named produccion, which is perhaps not accessible. The processs might be waiting for high priority IO, which could make them unkillable. A lot of speculation, ifs and perhaps, though.

EDIT2: Wikipedia tells me that the most recent release of SunOS was in 1994. Are you certain this is SunOS?

Last edited by berndbausch; 04-21-2020 at 07:12 AM.
 
Old 04-21-2020, 09:52 AM   #3
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by berndbausch View Post
Wikipedia tells me that the most recent release of SunOS was in 1994. Are you certain this is SunOS?
It's called Solaris (and openSolaris) nowadays.
 
Old 04-21-2020, 12:59 PM   #4
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,776

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
What is the "ps -l" output for a few of those processes? The only "unkillable" condition (where even "kill -9" is ineffective) I'm aware of is a process stuck in the "D" state, waiting for some I/O operation that never completes.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting a linux-audit rule to a ppid and all ppid's descendents lucaslo Linux - Server 0 06-23-2018 02:51 AM
LXer: What Are Zombie Processes And How To Find & Kill Zombie Processes? LXer Syndicated Linux News 0 12-10-2017 04:12 PM
Use only one "kill" to kill father and child processes Xosen Programming 7 08-28-2008 03:33 AM
How to remove defunct process without reboot and without "kill -9 ppid()" ? murugesan Linux - Software 2 07-17-2008 05:54 AM
how to use kill to kill a batch of processes with same name? dr_zayus69 Linux - Software 2 09-03-2005 06:35 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

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