11 messages in ru.sysoev.nginxRe: performance problem with Tomcat
FromSent OnAttachments
Chang SongJan 19, 2009 5:16 am 
Dave CheneyJan 19, 2009 5:45 am 
Chang SongJan 19, 2009 6:57 am 
Robert GabrielJan 19, 2009 7:15 am 
Chang SongJan 19, 2009 12:24 pm 
Robert GabrielJan 19, 2009 11:52 pm 
Robert GabrielJan 19, 2009 11:54 pm 
Robert GabrielJan 19, 2009 11:56 pm 
Robert GabrielJan 20, 2009 12:03 am 
Chang SongJan 20, 2009 5:07 am 
Chang SongJan 20, 2009 5:08 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: performance problem with TomcatActions...
From:Chang Song (tru6@me.com)
Date:Jan 19, 2009 6:57:25 am
List:ru.sysoev.nginx

I was getting more than 70-80,000 sockets in TIME_WAIT. I had to use tcp_timestamp to recycle them faster otherwise I get huge dip in performance once in a while (along with IP port range all open)

Since MSL is 60 second, that is more than 1200 TCP connections/sec. All there is to my nginx config is upstream and proxy_pass config. that's it.

1/19/09, 오후 10:45, Dave Cheney 작성:

I find that hard to believe. In practice the overhead of setting up a tcp connection on the same machine (or on the local network) is negligible.

Post your config and lets see what can be done.

Cheers

On 20/01/2009, at 12:16 AM, Chang Song wrote:

Hi, folks.

I have been testing nginx with Tomcat backend server, and I was disappointed with the result. 30-40% worse than apache front web server setup. I think the culprit of the performance problem is the absence of persistent connection (KeepAlive HTTP/1.1) to Tomcat like Apache's AJP connection.