Limit the number of Apache httpd processes using software, thus reducing resource usage and improving website performance.
With the help of this module, you can kill Apache httpd processes that are too large or have too little shared memory. You can choose to set up the process size limiter to check the process size on every request. In your startup.pl, you need to use Apache::GTopLimit, and specify the maximum process size, minimum shared process size, and maximum unshared process size in KB. You can also set up the debug mode and register a handler in your httpd.conf.
You can check requests that are likely to get big or unshared, which makes it easier for those who are mostly running Apache::Registry scripts. In your handler/CGI script, you can use Apache::GTopLimit and set the maximum process size, minimum shared process size, or maximum unshared process size. Note that the MAX_PROCESS_SIZE, MIN_PROCESS_SHARED_SIZE, and MAX_PROCESS_UNSHARED_SIZE are independent, and each will be checked only if it is set.
To minimize overhead, you can specify the number of times to check the process size using $Apache::GTopLimit::CHECK_EVERY_N_REQUESTS. This will only check the process size every other time the process size checker is called. Finally, it is better not to mix MAX_PROCESS_UNSHARED_SIZE with the first two.
Version 1.02: N/A