Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
nginx и память.
- To: nginx-ru@xxxxxxxxx
- Subject: nginx и память.
- From: "adept" <nginx-forum@xxxxxxxx>
- Date: Wed, 22 Feb 2012 18:25:17 -0500 (EST)
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tigger.jlkhosting.com; s=x; h=From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To:Date; bh=ahGMFPXCT8kiYIkAQadVcZTbTCG/Fou3H1cEDycQCR4=; b=XSXIKfiXtOZDYtFeLvpuA1kIAzd7FmLWR6/eEYIZeJeuQA7MCIT2KrgJl3bDZsBZnTZeEVyEua2+O5vR9Nij/MVarD17sNRZtbkRIPKbZ4wh6kQyAorjyDqZFxgxFQ/h;
Вобщем, есть сервер, использующийся для
проксирования файлов с ФО.
Схема такая:
ФО - сервер - клиент.
На сервере 3гб памяти, которую успешно
выжирает nginx.
Вопрос, как можно уменишь потребление
памяти nginx'om.
Конфиг:
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
events {
worker_connections 512;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
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 /var/log/nginx/access.log main;
sendfile on;
tcp_nopush on;
keepalive_timeout 65;
gzip on;
server {
listen IP:80;
server_name site.ru www.site.ru;
location / {
proxy_pass http://IP:8080;
proxy_redirect http://site.ru:8080/ /;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For
$proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
}
}
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,222884,222884#msg-222884
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|