# Nginx reverse proxy performance problems

**URL:** <https://www.ruby-forum.com/t/nginx-reverse-proxy-performance-problems/219889>\
**Category:** NGINX\
**Created:** [May 21, 2012, 7:16am UTC](https://www.ruby-forum.com/t/nginx-reverse-proxy-performance-problems/219889 "2012-05-21T07:16:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gurdipe\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/b77776/32.png) [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Post date:** [May 21, 2012, 7:16am UTC](https://www.ruby-forum.com/t/nginx-reverse-proxy-performance-problems/219889/1 "2012-05-21T07:16:24Z")

</div>

nginx version: nginx/1.2.0  
built by gcc 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu3)  
TLS SNI support enabled  
configure arguments: --add-module=/tmp/chunkin --with-http\_ssl\_module  
–with-http\_sub\_module --with-http\_gzip\_static\_module  
–with-http\_stub\_status\_module --with-pcre --prefix=/usr/local/nginx

Number of connections in the 35000 normal, the number of connections up  
to 40 000, nginx the status url can sometimes open sometimes not open  
,other url is such a situation.Open nginx the status url, refresh a few,  
how does that matter?  
nginx configuration is as follows:

user www-data;  
worker\_processes 8;

error\_log /var/log/nginx/error.log;  
pid /var/run/nginx.pid;  
worker\_cpu\_affinity 00000001 00000010 00000100 00001000 00010000  
00100000 01000000 10000000;  
worker\_rlimit\_nofile 655350;  
events {  
use epoll;  
worker\_connections 51200;  
}

http {  
charset utf-8;  
include /etc/nginx/mime.types;

```
access_log /var/log/nginx/access.log ;

sendfile on;
tcp_nopush on;
keepalive_timeout 60;
tcp_nodelay off;
gzip on;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
gzip_min_length 1k;
gzip_buffers 4 16k;
gzip_http_version 1.0;
gzip_comp_level 2;
gzip_types text/plain application/x-javascript text/css

```

application/xml;  
gzip\_vary on;

```
client_max_body_size 128M;
client_body_buffer_size 256k;
client_header_buffer_size 4k;
large_client_header_buffers 4 16k;
proxy_connect_timeout 60;
proxy_send_timeout 60;
proxy_read_timeout 60;
proxy_buffer_size 512k;
proxy_buffers 64 256k;
proxy_busy_buffers_size 512k;
proxy_temp_file_write_size 512k;
proxy_next_upstream error timeout invalid_header http_500 http_503

```

http\_404;  
proxy\_max\_temp\_file\_size 128m;

```
include /etc/nginx/log_format.conf;
include /etc/nginx/proxy_upstream.conf;
include /etc/nginx/conf.d/*.conf;

```

}

Posted at Nginx Forum:

> **[nginx reverse proxy performance problems](https://forum.nginx.org/read.php?2,226673,226673#msg-226673)**
>
> nginx version: nginx/1.2.0 built by gcc 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu3) TLS SNI support enabled configure arguments: --add-module=/tmp/chunkin --with-http\_ssl\_module --with-http\_sub\_module --with-http\_gzip\_static\_module...

---

<div class="post-metadata">

**Author:** ![kevin.liu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f04885/32.png) [@kevin.liu](https://www.ruby-forum.com/u/kevin.liu)\
**Post date:** [May 21, 2012, 7:19am UTC](https://www.ruby-forum.com/t/nginx-reverse-proxy-performance-problems/219889/2 "2012-05-21T07:19:30Z")

</div>

Server configuration:  
cpu: 8 core  
memory: 16GB

Posted at Nginx Forum:

> **[Re: nginx reverse proxy performance problems](https://forum.nginx.org/read.php?2,226673,226674#msg-226674)**
>
> nginx version: nginx/1.2.0 built by gcc 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu3) TLS SNI support enabled configure arguments: --add-module=/tmp/chunkin --with-http\_ssl\_module --with-http\_sub\_module --with-http\_gzip\_static\_module...

---

<div class="post-metadata">

**Author:** ![kevin.liu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f04885/32.png) [@kevin.liu](https://www.ruby-forum.com/u/kevin.liu)\
**Post date:** [May 21, 2012, 7:26am UTC](https://www.ruby-forum.com/t/nginx-reverse-proxy-performance-problems/219889/3 "2012-05-21T07:26:17Z")

</div>

syn cookies enabled

Posted at Nginx Forum:

> **[Re: nginx reverse proxy performance problems](https://forum.nginx.org/read.php?2,226673,226675#msg-226675)**
>
> nginx version: nginx/1.2.0 built by gcc 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu3) TLS SNI support enabled configure arguments: --add-module=/tmp/chunkin --with-http\_ssl\_module --with-http\_sub\_module --with-http\_gzip\_static\_module...

---

<div class="post-metadata">

**Author:** ![kevin.liu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f04885/32.png) [@kevin.liu](https://www.ruby-forum.com/u/kevin.liu)\
**Post date:** [May 22, 2012, 4:43am UTC](https://www.ruby-forum.com/t/nginx-reverse-proxy-performance-problems/219889/4 "2012-05-22T04:43:39Z")

</div>

What about your system load? Is there any bottleneck with your server?

2012/5/21 kevin.liu [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

---

<div class="post-metadata">

**Author:** ![kevin.liu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f04885/32.png) [@kevin.liu](https://www.ruby-forum.com/u/kevin.liu)\
**Post date:** [May 22, 2012, 9:37am UTC](https://www.ruby-forum.com/t/nginx-reverse-proxy-performance-problems/219889/5 "2012-05-22T09:37:06Z")

</div>

The server load average is very small。  
basically in the following：

0.00 0.01 0.05

Posted at Nginx Forum:

> **[Re: nginx reverse proxy performance problems](https://forum.nginx.org/read.php?2,226673,226706#msg-226706)**
>
> nginx version: nginx/1.2.0 built by gcc 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu3) TLS SNI support enabled configure arguments: --add-module=/tmp/chunkin --with-http\_ssl\_module --with-http\_sub\_module --with-http\_gzip\_static\_module...

---

<div class="post-metadata">

**Author:** ![kevin.liu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f04885/32.png) [@kevin.liu](https://www.ruby-forum.com/u/kevin.liu)\
**Post date:** [May 22, 2012, 10:04am UTC](https://www.ruby-forum.com/t/nginx-reverse-proxy-performance-problems/219889/6 "2012-05-22T10:04:40Z")

</div>

Is there any errors in the error.log

2012/5/22 kevin.liu [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

---

<div class="post-metadata">

**Author:** ![kevin.liu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f04885/32.png) [@kevin.liu](https://www.ruby-forum.com/u/kevin.liu)\
**Post date:** [May 22, 2012, 10:14am UTC](https://www.ruby-forum.com/t/nginx-reverse-proxy-performance-problems/219889/7 "2012-05-22T10:14:40Z")

</div>

there is no error in the error.log log

Posted at Nginx Forum:

> **[Re: nginx reverse proxy performance problems](https://forum.nginx.org/read.php?2,226673,226711#msg-226711)**
>
> nginx version: nginx/1.2.0 built by gcc 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu3) TLS SNI support enabled configure arguments: --add-module=/tmp/chunkin --with-http\_ssl\_module --with-http\_sub\_module --with-http\_gzip\_static\_module...
