Re: threads, performance, and exceptions

2006-10-02 Thread Andrew Miehs
You may want to try turning off keepalives in your tomcat. (I assume you are only using tomcat, and not proxying through mod_jk and apache/ IIS). In your connector settings have a look at 'maxKeepAliveRequests=1' If you really have that many threads, you will probably be best of using

Re: threads, performance, and exceptions

2006-10-02 Thread Leon Rosenberg
Hmm, I would suggest you stop having continuos connections. 30 seconds is a lot of time, maybe you should re-establish connections on request. I know re-establishing costs 3 additional tcp packets, but it negligible since you have small packets sent seldomly. I assume your chat is an applet,

threads, performance, and exceptions

2006-10-01 Thread Peter Warren
I have an application that links users so they can chat. My client operates within a browser. To be firewall friendly and avoid client server sockets listening for incoming requests, I implemented the client so that it makes http requests and sits and waits (maybe for minutes on end) until it