nginx状态监控  
   
所属分类 nginx
浏览量 2081
开启status模块
编译安装时加上 –with-http_stub_status_module
server {
        listen       8000;
        server_name  localhost;
        location / {
            proxy_pass http://backendServers;
        }
        location /nginx_status {
            stub_status on;
            access_log off;
            # allow 192.168.1.100;
            # deny all;
        }
    }
    
http://127.0.0.1:8000/nginx_status
Active connections: 1 
server accepts handled requests
 5 5 87 
Reading: 0 Writing: 1 Waiting: 0 
活动连接数
总连接数
accept连接数
请求总数
正在读取的 正在写入的  等待的
 上一篇  
   
 下一篇  
 nginx知识点整理 
 nginx配置详解 
 nginx超时配置 
 使用prometheus和grafana监控JVM 
 应用监控资料收集整理 
 java agent 简单例子