nginx 1.2.9 (Windows) worker memory footprint
August 05, 2013 12:50PM
Hi,
I am using nginx 1.2.9 on a 64-bit Windows Server. I have observed that the worker process's memory footprint tends to increase over time and at around 2GB a new worker tries to spawn; at which point nginx becomes non-responsive. I have done all the checks I know to investigate the matter but to no avail. Also, I haven't been able to locate any help online so far.
Can anyone throw some light why the above issue might be happening and how can I remedy it?

Thanks!

Rajiv.
Re: nginx 1.2.9 (Windows) worker memory footprint
August 06, 2013 02:45PM
Never seen this happen, using 1.4.2, even with the 1.2 branch memory use remained stable, don't use more then 1 worker.
Re: nginx 1.2.9 (Windows) worker memory footprint
August 07, 2013 12:07AM
Thanks for your reply.
I am using just one worker. Here's my conf:

#user nobody;
worker_processes 1;

#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;

#pid logs/nginx.pid;


events {
worker_connections 1024;
}


http {
access_log off;
#limit_req_zone $binary_remote_addr zone=one:10m rate=1r/m;
include mime.types;
default_type application/octet-stream;

#proxy_cache_path /nginx-cache levels=1:2 keys_zone=my-cache:8m max_size=1000m inactive=600m;
#proxy_temp_path /nginx-cache/tmp;

#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';

#access_log logs/access.log main;

sendfile on;
#tcp_nopush on;

keepalive_timeout 10s;

#gzip on;

upstream lb_units {
server localhost:8081 weight=10 max_fails=3 fail_timeout=1s; # Reverse proxy to BES1
server localhost:8082 weight=10 max_fails=3 fail_timeout=30s; # Reverse proxy to BES2
server localhost:8083 weight=10 max_fails=3 fail_timeout=30s; # Reverse proxy to BES3
}

upstream lb_units1 {
server localhost:8081 weight=10 max_fails=3 fail_timeout=30s; # Reverse proxy to BES1
server localhost:8082 weight=10 max_fails=3 fail_timeout=30s; # Reverse proxy to BES2
server localhost:8083 weight=10 max_fails=3 fail_timeout=30s; # Reverse proxy to BES3
}


server {
listen 80;
server_name localhost;

#charset koi8-r;

#access_log logs/host.access.log main;

location /k {
proxy_pass http://lb_units;
#limit_req zone=one burst=5;

#proxy_cache my-cache;
#proxy_cache_valid 200 302 60m;
#proxy_cache_valid 404 1m;
}

location /p {
proxy_pass http://lb_units1;
}

location /bar {
keepalive_timeout 2s;
expires 20m;
root html;
index index.html;
}


error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}

}
Re: nginx 1.2.9 (Windows) worker memory footprint
August 07, 2013 01:06PM
Try sendfile off;
Re: nginx 1.2.9 (Windows) worker memory footprint
August 07, 2013 03:10PM
See attachment, nginx 1.4.2 with worker_connections limit removed, geo-pooled php 5.4.17 nts, xcache 3.0.3, each process runs under a very restricted unique user, keeps on running for weeks without needing a restart, easily handling 10k+ sessions.
Attachments:
open | download - ngphp.jpg (128.1 KB)
Re: nginx 1.2.9 (Windows) worker memory footprint
August 08, 2013 01:27PM
Why the file won't show, no idea, but here's an alternative link to the attachment:
http://imagebin.ca/qpQhhYjvVzZ/ngphp.jpg
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 123
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready