0

I am just starting learning Nginx webserver. I have question regarding few parameters which I know apache has, but I cannot find something similar in Nginx.

I used to monitor idle workers in apache with http:/host/server-status. Unfortunately I didn't find the way how to monitor idle workers in nginx.

As I understood Nginx has one global worker (worker_processes) which can server 1024 worker_connections. I hope I am get it correctly.

But how can I measure the current load on Nginx. How many from 1024 worker_connections I use currently.

Thanks!

1

The equivalent for nginx is HttpStubStatusModule. And there is a Munin plugin.

nginx configuration:

server {
   listen 127.0.0.1;
   server_name localhost;
   location /nginx_status {
           stub_status on;
           access_log   off;
           allow 127.0.0.1;
           deny all;
   }
}

And if you have an other ssl server, add :

server {
   listen 127.0.0.1:443;
   ssl....
   server_name localhost;
   location /nginx_status_ssl {
           stub_status on;
           access_log   off;
           allow 127.0.0.1;
           deny all;
   }
}
| improve this answer | |
  • Great, thanks, I have another one server section for https connection, the problem now is even connection to nginx_status it tries to transfer thought ssl and meanwhile I have error messages 400 Bad Request. Do you know what I missed? – com May 22 '12 at 12:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.