Forum Moderators: phranque

Message Too Old, No Replies

RLimit

How often apache scans

         

debajit kataki

6:22 am on Mar 27, 2009 (gmt 0)

10+ Year Member



Hello,

I just set a RLimit on my httpd.conf file
like this RLimitCPU 105 110

is it too low? as i starated getting some <defunct> after this.

Also,

How often /in what interval would my apache child processes will be scanned by apache(?) if it is crossing the threshold and kill the same.

~Thanks
DK

debajit kataki

9:51 am on Mar 31, 2009 (gmt 0)

10+ Year Member



Please Help on this post.

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

jdMorgan

1:51 pm on Mar 31, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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

debajit kataki

4:02 am on Apr 1, 2009 (gmt 0)

10+ Year Member



Thank you Jim, i should surely wait.

I too look forward to contribute in coming days :-)

debajit kataki

5:21 am on Apr 1, 2009 (gmt 0)

10+ Year Member



For Q.2 I just could reach here, is it safe?

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 {}

debajit kataki

6:42 am on Apr 6, 2009 (gmt 0)

10+ Year Member



Okay, so what i could conclude on RLIMIT at last was:

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 :-)

jdMorgan

2:10 pm on Apr 6, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks for posting that information -- While it appears that the members here couldn't offer you much help, your thread will help others who read it in the future.

Jim