diff options
author | Sander Striker <striker@apache.org> | 2002-07-04 17:20:54 +0200 |
---|---|---|
committer | Sander Striker <striker@apache.org> | 2002-07-04 17:20:54 +0200 |
commit | 62faca71e775e4b06c78946fd035bc7bc705bfe6 (patch) | |
tree | 4724629d8a74aec43a45bd583815e3043f00d61b /server/mpm/netware | |
parent | Make the mime types configuration file path relative to {sysconfdir}, (diff) | |
download | apache2-62faca71e775e4b06c78946fd035bc7bc705bfe6.tar.xz apache2-62faca71e775e4b06c78946fd035bc7bc705bfe6.zip |
Add a new directive: MaxMemFree. MaxMemFree makes it possible
to configure the maximum amount of memory the allocators will
hold on to for reuse. Anything over the MaxMemFree threshold
will be free()d. This directive is usefull when uncommon large
peaks occur in memory usage. It should _not_ be used to mask
defective modules' memory use.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95954 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/mpm/netware')
-rw-r--r-- | server/mpm/netware/mpm.h | 1 | ||||
-rw-r--r-- | server/mpm/netware/mpm_netware.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/server/mpm/netware/mpm.h b/server/mpm/netware/mpm.h index 74a5f55194..f53125944b 100644 --- a/server/mpm/netware/mpm.h +++ b/server/mpm/netware/mpm.h @@ -72,6 +72,7 @@ #define AP_MPM_WANT_SET_LOCKFILE */ #define AP_MPM_WANT_SET_MAX_REQUESTS +#define AP_MPM_WANT_SET_MAX_MEM_FREE #define AP_MPM_DISABLE_NAGLE_ACCEPTED_SOCK /*#define AP_MPM_WANT_SET_COREDUMPDIR #define AP_MPM_WANT_SET_ACCEPT_LOCK_MECH diff --git a/server/mpm/netware/mpm_netware.c b/server/mpm/netware/mpm_netware.c index 621d470963..59abe96517 100644 --- a/server/mpm/netware/mpm_netware.c +++ b/server/mpm/netware/mpm_netware.c @@ -373,6 +373,7 @@ void worker_main(void *arg) tv.tv_usec = 0; apr_allocator_create(&allocator); + apr_allocator_max_free_set(allocator, ap_max_mem_free); apr_pool_create_ex(&ptrans, NULL, NULL, allocator); apr_allocator_owner_set(allocator, ptrans); apr_pool_tag(ptrans, "transaction"); |