03-13-2008
check
this
in short, try to kill their parent process and if you can't, other option is to restart the web server
10 More Discussions You Might Find Interesting
1. Programming
hi
i m writin a program in which i keep track of all the child processes the program has generated and if a child process has an abnormal termination i need to do certain task related to that child process.
for handlin child process i used waitpid:
temp_cpid=waitpid(-1,&stat,WUNTRACED);
... (4 Replies)
Discussion started by: mridula
4 Replies
2. UNIX for Advanced & Expert Users
Is there a way to monitor certain processes and if they hang too long to kill them, but certain scripts which are expected to take a long time to let them go?
Thank you
Richard (4 Replies)
Discussion started by: ukndoit
4 Replies
3. Programming
main()
{
pid_t child;
child=fork();
if(child > 0)
{sleep(60);
}
else
{exit(0);
}
}
the above code will create zombie process,which will be adopted by init as soon as parent process will dies.Can any one gimme a code or an alogrithm to keep this zombie proocess alive even after... (6 Replies)
Discussion started by: anilchowdhury
6 Replies
4. UNIX for Dummies Questions & Answers
can some one please explain
zombie
orphan
defunct
and how they r related (3 Replies)
Discussion started by: pbsrinivas
3 Replies
5. Shell Programming and Scripting
Hi
I need help because I don't know if it is possible to add a find inside a cat.
like I have a file with the pid of the process that use to became zombie. And I have the same pid stored in the var (pid1)
now, I have no clue how to check if the the find finds the pid or even if it's... (2 Replies)
Discussion started by: ruben.rodrigues
2 Replies
6. Red Hat
Hey,
I've got a program that fork's a list of child processes, and keeps their pid's in a list.
After the parent finishes it's main business logic, it needs to check which child already finished - and when.
Is it possible - using waitpid or any other func\syscall - get this information... (0 Replies)
Discussion started by: sternr
0 Replies
7. AIX
Is there an equivilant to the preap command in AIX that would allow me to get rid of a zombie process. I am new to AIX, moving over from Solaris and in the past I have been able to preap the pid on the defunct process to clean them up. I have looked around and the best I can see is that it may... (3 Replies)
Discussion started by: sboots
3 Replies
8. Shell Programming and Scripting
I had issues with processes locking up. This script checks for processes and kills them if they are older than a certain time.
Its uses some functions you'll need to define or remove, like slog() which I use for logging, and is_running() which checks if this script is already running so you can... (0 Replies)
Discussion started by: sukerman
0 Replies
9. UNIX for Advanced & Expert Users
What is the overhead associated with zombie process?Is it running out of process-ID?:confused:
Since some information is stored in process table..
Thanks in Advance (4 Replies)
Discussion started by: jois
4 Replies
10. Shell Programming and Scripting
:)how do we list zombie processes in unix server??? :confused: (3 Replies)
Discussion started by: nikhil jain
3 Replies
LEARN ABOUT DEBIAN
gfsched
GFSCHED(1) GFSCHED(1)
NAME
gfsched - schedule and display available file system nodes
SYNOPSIS
gfsched -f gfarm-URL [ -D domain-name ] [ -n number ] [ -LMclw ]
gfsched [ -P gfarm-URL ] [ -D domain-name ] [ -n number ] [ -LMlw ]
DESCRIPTION
The gfsched command with the -f gfarm-URL option displays available file system nodes which have a file replica of the specified gfarm-URL.
When the -f gfarm-URL option is not specified, the gfsched command just displays available file system nodes. In this case, you can spec-
ify a metadata server by the -P gfarm-URL option, if necessary.
OPTIONS
-D domain-name
Limits file system node by specifying a domain name or a hostname.
-c Displays scheduling information for a file creation, if the file specified by -f doesn't exist.
Currently, this option creates the specified file. But please note that this behavior may be changed in future.
-L Suppresses authentication check. Without this option, the scheduler checks whether the user will be successfully authenticated with
the hosts or not. This option omits the check to make scheduling faster, but that creates a risk that hosts which fail authentica-
tion with the user may be scheduled.
-M Suppresses client-side scheduling and only performs metadata-server-side scheduling. This option makes scheduling faster, but also
creates a risk that hosts which is network-unreachable or fails authentication with the user may be scheduled.
-P gfarm-URL
Specifies a gfarm-URL or a pathname to identify a metadata server which is used for the scheduling. This option conflicts with the
-f option.
-f gfarm-URL
The gfsched command schedules file system nodes which have a replica of a file specified by this option. This option conflicts with
the -P option.
-l Long format. This option displays port numbers as well as hostnames. Note that the display format of this option may be changed in
future.
-n number
Displays specified number of file system nodes at most. If this option is not specified, it displays all available nodes.
-w Schedules with write-mode. When this option is specified, file system nodes which don't have enough free space won't be displayed.
When both this option and the -f are specified, and if the file is already opened by an existing process with write-mode, the
gfsched command only displays one file system node which is assigned for writing to the file.
-? Displays a list of command options.
EXAMPLES
The following is an example to inquire file system nodes that the metadata server thinks they are currently working.
$ gfsched -M
Gfarm 28 December 2010 GFSCHED(1)