All Projects → chikuwait → ngx_memory_leak_killer

chikuwait / ngx_memory_leak_killer

Licence: MIT license
ngx_memory_leak_killer can graceful restart a working process that exceeds the upper limit of memory usage.

Programming Languages

c
50402 projects - #5 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to ngx memory leak killer

Nginx Opentracing
NGINX plugin for OpenTracing
Stars: ✭ 341 (+1162.96%)
Mutual labels:  nginx-module
Nginx Builder
A tool to build deb or rpm package of required Nginx version from the source code, with the ability to connect third-party modules. Nginx parameters are set in the yaml configuration file.
Stars: ✭ 123 (+355.56%)
Mutual labels:  nginx-module
Nginx-builder
A tool to build deb or rpm package of required Nginx version from the source code, with the ability to connect third-party modules. Nginx parameters are set in the yaml configuration file.
Stars: ✭ 143 (+429.63%)
Mutual labels:  nginx-module
Testcookie Nginx Module
simple robot mitigation module using cookie based challenge/response technique. Not supported any more.
Stars: ✭ 447 (+1555.56%)
Mutual labels:  nginx-module
Ngx dynamic limit req module
The ngx_dynamic_limit_req_module module is used to dynamically lock IP and release it periodically.
Stars: ✭ 57 (+111.11%)
Mutual labels:  nginx-module
Mod zip
Streaming ZIP archiver for nginx 📦
Stars: ✭ 178 (+559.26%)
Mutual labels:  nginx-module
Ngx php
ngx_php - Embedded php scripting language for nginx module. All released versions of the code repository.
Stars: ✭ 290 (+974.07%)
Mutual labels:  nginx-module
nginx-module-stream-sts
Nginx stream server traffic status core module
Stars: ✭ 51 (+88.89%)
Mutual labels:  nginx-module
Zstd Nginx Module
Nginx modules for the Zstandard compression
Stars: ✭ 64 (+137.04%)
Mutual labels:  nginx-module
Nginx Module Vts
Nginx virtual host traffic status module
Stars: ✭ 2,518 (+9225.93%)
Mutual labels:  nginx-module
Nginx Module Sysguard
Nginx sysguard module
Stars: ✭ 568 (+2003.7%)
Mutual labels:  nginx-module
Nginx Nonewlines
This is an nginx module to strip the served HTML of all newlines (\n and \r characters)
Stars: ✭ 17 (-37.04%)
Mutual labels:  nginx-module
Ssowat
A simple SSO for NGINX, written in Lua
Stars: ✭ 190 (+603.7%)
Mutual labels:  nginx-module
Nginx Tutorial
最全面,最深入的nginx从入门到精通的教程
Stars: ✭ 416 (+1440.74%)
Mutual labels:  nginx-module
NginxExecute
The NginxExecute module executes the shell command through GET POST and HEAD to display the result.
Stars: ✭ 47 (+74.07%)
Mutual labels:  nginx-module
Ngx php7
ngx_php7 - Embedded php7 scripting language for nginx module. Mainline development version of the ngx_php.
Stars: ✭ 337 (+1148.15%)
Mutual labels:  nginx-module
Ngx healthcheck module
nginx module for upstream servers health check. support stream and http upstream. 该模块可以为Nginx提供主动式后端服务器健康检查的功能(同时支持四层和七层后端服务器的健康检测)
Stars: ✭ 145 (+437.04%)
Mutual labels:  nginx-module
nginx ipset blacklist
nginx module to use linux netfilter ipsets as blacklists
Stars: ✭ 34 (+25.93%)
Mutual labels:  nginx-module
nginx-opentracing
Instrument nginx for OpenTracing.
Stars: ✭ 21 (-22.22%)
Mutual labels:  nginx-module
Nginx Http Echo Module
A simple Nginx echo module
Stars: ✭ 192 (+611.11%)
Mutual labels:  nginx-module

Build Status

ngx_memory_leak_killer

ngx_memory_leak_killer can graceful restart a working process that exceeds the upper limit of memory usage. Thanks to nginx-hello-world-module and ngx_bumpylife.

Configuration

  • Enable "memory_leak_killer"
  • Set the upper limit of memory usage in kilobytes
http {
    memory_leak_killer on;
    memory_leak_killer_limit 5000; #5MB
    ...
}

Install

  • use nginx configure option
./configure --add-module=/path/to/ngx_memory_leak_killer

Example

$ ./work/sbin/nginx

$ ps auwxf |grep nginx
ubuntu   23505  0.0  0.0  16464   384 ?        Ss   08:46   0:00 nginx: master process ./work/sbin/nginx
ubuntu   23506  0.0  0.0  16908  1936 ?        S    08:46   0:00  \_ nginx: worker process

$ curl localhost:8080/memory
leak memory(+2MB)

$ ps auwxf |grep nginx
ubuntu   23505  0.0  0.0  16464   384 ?        Ss   08:46   0:00 nginx: master process ./work/sbin/nginx
ubuntu   23506  0.0  0.0  18864  4744 ?        S    08:46   0:00  \_ nginx: worker process

$ curl localhost:8080/memory
leak memory(+2MB)

$ ps auwxf |grep nginx
ubuntu   23505  0.0  0.0  16464   384 ?        Ss   08:46   0:00 nginx: master process ./work/sbin/nginx
ubuntu   23506  0.0  0.0  20820  6640 ?        S    08:46   0:00  \_ nginx: worker process

$ curl localhost:8080/memory
leak memory(+2MB)

$ ps auwxf |grep nginx
ubuntu   23505  0.0  0.0  16464   384 ?        Ss   08:46   0:00 nginx: master process ./work/sbin/nginx
ubuntu   23519  0.0  0.0  16908  1936 ?        S    08:46   0:00  \_ nginx: worker process





LICENSE

See LICENSE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].