www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruce Garlock <bru...@tiac.net>
Subject general/5901: RLimitNPROC does not seem to work.
Date Sun, 19 Mar 2000 00:30:12 GMT

>Number:         5901
>Category:       general
>Synopsis:       RLimitNPROC does not seem to work.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Sat Mar 18 16:40:00 PST 2000
>Originator:     bruceg@tiac.net
>Release:        1.3.9
Redhat 6.1
Linux linux.server 2.2.14 #3 Thu Mar 2 16:49:49 EST 2000 i586 unknown
After discovering someone was able to bring one of my servers down, by continually
clicking on a button that launches a perl cgi program (thus starting several perl
sessions on the server, and brining the load up over 75+), I started to research
how to solve this problem.  After seeing that I could set RLimitNPROC in a 
server config file, I set it to "RLimitNROC 2", just to test it.  I was still able
to launch numerous cgi scripts by performing the Denial of Service method explained
above.  I also tried "RLimitNPROC 2 3" and the same thing happened.

Am I missing something here?

Adding a header to each of my cgi scripts that first checks to see how many instances 
of the script are already running, and not executing the script if the limit is reached.
 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]

View raw message