worker process and memory leak ?

Chavelle Vincent lists at ruby-forum.com
Mon Apr 21 16:54:01 MSD 2008


Hi all,

For testing, I compile nginx with following options :
./configure --with-http_ssl_module --without-http_charset_module
--without-http_
ssi_module --without-http_auth_basic_module
--without-http_autoindex_module --wi
thout-http_geo_module --without-http_map_module
--without-http_limit_zone_module
 --without-http_empty_gif_module --without-http_browser_module
--without-http_up
stream_ip_hash_module --without-http_gzip_module
--without-http_userid_module --
without-http_access_module --without-http_referer_module
--without-http_rewrite_
module --without-http_proxy_module --without-http_fastcgi_module
--without-http_
memcached_module --without-mail_pop3_module --without-mail_imap_module
--without
-mail_smtp_module

nginx.conf:

worker_processes  1;
error_log  logs/error.log  info;

events {
    worker_connections  1024;
    use epoll;
}

http {
    include       mime.types;
    default_type  application/octet-stream;
    sendfile        on;
    keepalive_timeout  65;

server {
        listen       443;
        server_name  myip;

  client_max_body_size 100M;
        ssl                  on;
  ssl_verify_client    on;
        ssl_certificate      server.pem;
        ssl_certificate_key  server.key;
  ssl_client_certificate ca.pem;
        ssl_session_timeout  5m;

        ssl_protocols  TLSv1;
        ssl_ciphers
ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
        ssl_prefer_server_ciphers   on;

        location / {
            root   html;
            index  index.html index.htm;
        }
    }
}

Without any request, the state of worker process is:
15027 nobody    18   0  4104  944  392 S    0  0.1   0:00.00 nginx

When I flood it with 50 bad request (GET /test.test => 404) the worker
process becomes:
15027 nobody    16   0  4584 2300 1308 S    0  0.2   0:04.99 nginx

With another 50 bad request:
15027 nobody    16   0  5012 2668 1308 S    0  0.3   0:09.94 nginx

etc...

Nginx is it concerned? Hence the problem can come?

Thanks in advance
-- 
Posted via http://www.ruby-forum.com/.





More information about the nginx mailing list