>Number: 1816 >Category: os-linux >Synopsis: RLimitMEM doesn't work on Linux >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Mon Feb 16 10:20:00 PST 1998 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: 1.2.5 >Environment: Linux quechua 2.0.32 #3 Thu Dec 11 17:18:12 MET 1997 i586 >Description: Apache implements RLimitMEM by setting "RLIMIT_DATA" and "RLIMIT_VMEM" if #defined. On Linux, only RLIMIT_DATA is #defined, but seems not to work. But there's an equivalent to RLIMIT_VMEM called RLIMIT_AS. Using RLIMIT_AS instead of RLIMIT_VMEM solves the problem. >How-To-Repeat:
>Fix: --- conf.h.orig Mon Feb 16 19:03:12 1998 +++ conf.h Mon Feb 16 18:42:56 1998 @@ -261,6 +261,7 @@ #define HAVE_SHMGET #define HAVE_SYS_RESOURCE_H typedef int rlim_t; +#define RLIMIT_VMEM RLIMIT_AS #endif #define USE_FCNTL_SERIALIZED_ACCEPT #undef HAVE_GMTOFF %0 >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include <[EMAIL PROTECTED]> in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ]
