Skip to content

Nginx doesn't respond back after few days of run (nginx-clojure) #172

@rachit20

Description

@rachit20

Hi,
I am running nginx 1.11.0 and compiled the sources along with nginx-clojure-0.4.4 java module . I have written my custom java handlers . I have deployed it on Ubuntu 12 Core machine . Please find my nginx.conf

user root;
worker_processes 12;
events {
worker_connections 5000;
use epoll;
multi_accept on;
}
worker_rlimit_nofile 100000;
http {
include mime.types;
default_type application/octet-stream;
server_tokens off;
keepalive_timeout 65;
keepalive_requests 1000000;
sendfile on;
sendfile_max_chunk 256k;
tcp_nopush on;
tcp_nodelay on;
access_log off;
client_body_buffer_size 512k;
client_max_body_size 50m;
client_header_buffer_size 1k;
large_client_header_buffers 32 512k;
output_buffers 2 32k;
postpone_output 1460;
client_header_timeout 3m;
client_body_timeout 3m;
send_timeout 3m;
open_file_cache max=1000 inactive=20s;
open_file_cache_valid 30s;
open_file_cache_min_uses 5;
open_file_cache_errors off;
jvm_path '/usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so';
jvm_var javaPath '/usr/lib/jvm/java-8-oracle/jre/lib/';
jvm_classpath '/opt/nginx/lib/
';
jvm_options "-DMYPID=#{pno}";
jvm_options "-Xmx128m";
jvm_options "-XX:+UseParallelGC";
jvm_options "-XX:ParallelGCThreads=2";

So each worker process is starting at around memory (RES - 17172) but after few days of run it grows like anything (RES - 65090) and suddenly nginx doesn't responds . There will be no response back . As I am a java developer can't really find a way to debug . Kindly help me in fixing as i suspect when it crosses certain memory threshold it stops responding . So the only option left is to restart nginx . Kindly help and please validate my conf .

Regards,
Rachit

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions