performance problem with Tomcat
Chang Song
tru64ufs at me.com
Mon Jan 19 23:24:46 MSK 2009
Thank you, Robert.
Maybe I wasn't articulate enough.
I am not using AJP port, I am simply using Tomcat directly.
And I have all those sysctl setting correct, except tcp_timestamps.
With tcp_timestamps=0, I am overflowing with too many sockets in
TIME_WAIT. I have to use timestamps=1 to reduce the number of
sockets in TIME_WAIT.
1/20/09, 오전 12:15, Robert Gabriel 작성:
> 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.
>>
>> Does anyone has the same problem?
>> Anyone with a good solution?
>>
>> Thank you.
>>
>> Chang
>
> Hey, Im using tomcat, its running on localhost port 8180, without AJP
> and works quite fine. I dont see any actual issue with it.
>
> Maybe try to eliminate AJP connector, just use it the clasic way and
> it
> might work better, try also this kernel settings:
>
> net.ipv4.tcp_timestamps=0
> net.ipv4.tcp_fin_timeout = 1
> net.ipv4.tcp_tw_recycle = 1
> --
> Posted via http://www.ruby-forum.com/.
>
More information about the nginx
mailing list