Forum Moderators: phranque
Also May i add one more similar query onto it?
Q.2 How do i auto kill long running apache child pid? DO i have to install something like 'psmon' [search.cpan.org...]
or apache has its own capability/feature? Please advice.
~Best Regards
DK
Welcome to WebmasterWorld!
Please be aware that our members are all over the world, and the person who can answer your question may be sleeping right now. Also, because this is a technical forum, we have a limited number of contributors. So, please do not expect an instant answer as you might when using IM chat.
A correct answer after 20 hours is better than an immediate incorrect answer! :)
Thanks,
Jim
links --dump 1 [serveradmin.domain.com...] ^[0-9]¦awk 'BEGIN {print "Seconds, PID, State, IP, Domain, TYPE, URL\n--"} $4 !~ /[GCRK_.]/ {print $6, $2, $4, $11, $12, $13 " " $14¦"sort -n"}' ¦ awk '{ if ($1 > 300 && $3 == "W") print $2;}'¦ xargs -i kill {}
rlimit is process-based and establishes a restricting boundary on the consumption of a variety of system resources by a process. So, an apache child pid gets forked, with this limit itself which acts as a boundary with the set(soft) and hard limit.
A process might irreversibly lower its hard limit to any value that is greater than or equal to the soft limit.
Also, Unreaped (“zombie”) processes show up as <defunct>
SO for both my query atleast i could reach somewhere. Thanks :-)