Connection refused under hight load
Hi, I'm testing a servlet-application that is using Tomcat v 3.1 (standalone, without Apache) running on Win2K Workstation. The tool I'm using for testing starts a (configurable) number of threads, each of which connects to the server, sends a HTTP-request and waits for the response. It runs on the same machine as the server. When I start many threads simultaneously, the server sometimes refuses connections (I get a ConnectException on client side). The tomcat logfile shows nothing unusual. Does someone know a possible reason for this behaviour or even a solution ? (I suspect that the "connection request queue" (I don't know the correct term ) of the operating system is too short, but where can i adjust this ?) Thanks in advance, Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Connection refused under hight load
I'd say that you've started too many threads; when there are no more threads available in the thread pool, Tomcat refuses connections. You should increase the number of threads in the pool. Sadly, I don't know how to do that; and would like to know :) Cheers, Alex. Markus Ebersberger wrote: Hi, I'm testing a servlet-application that is using Tomcat v 3.1 (standalone, without Apache) running on Win2K Workstation. The tool I'm using for testing starts a (configurable) number of threads, each of which connects to the server, sends a HTTP-request and waits for the response. It runs on the same machine as the server. When I start many threads simultaneously, the server sometimes refuses connections (I get a ConnectException on client side). The tomcat logfile shows nothing unusual. Does someone know a possible reason for this behaviour or even a solution ? (I suspect that the "connection request queue" (I don't know the correct term ) of the operating system is too short, but where can i adjust this ?) Thanks in advance, Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Connection refused under hight load
Title: RE: Connection refused under hight load I know that NT4 Workstation only allows 10 concurrent network connections. I didn't think that limit had changed for Win2k Workstation. Even though your app is running on the same machine, it is still making tcpip requests which would count against the limit. This is to force people to buy NT Server. Charlie -Original Message- From: Markus Ebersberger [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 6:13 AM To: [EMAIL PROTECTED] Subject: Connection refused under hight load Hi, I'm testing a servlet-application that is using Tomcat v 3.1 (standalone, without Apache) running on Win2K Workstation. The tool I'm using for testing starts a (configurable) number of threads, each of which connects to the server, sends a HTTP-request and waits for the response. It runs on the same machine as the server. When I start many threads simultaneously, the server sometimes refuses connections (I get a ConnectException on client side). The tomcat logfile shows nothing unusual. Does someone know a possible reason for this behaviour or even a solution ? (I suspect that the connection request queue (I don't know the correct term ) of the operating system is too short, but where can i adjust this ?) Thanks in advance, Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Connection refused under hight load
AFAIK, this limit doesn't apply for TCP/IP connections, only netbios connections. Mark -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 8:17 AM To: '[EMAIL PROTECTED]' Subject: RE: Connection refused under hight load I know that NT4 Workstation only allows 10 concurrent network connections. I didn't think that limit had changed for Win2k Workstation. Even though your app is running on the same machine, it is still making tcpip requests which would count against the limit. This is to force people to buy NT Server. Charlie -Original Message- From: Markus Ebersberger [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 6:13 AM To: [EMAIL PROTECTED] Subject: Connection refused under hight load Hi, I'm testing a servlet-application that is using Tomcat v 3.1 (standalone, without Apache) running on Win2K Workstation. The tool I'm using for testing starts a (configurable) number of threads, each of which connects to the server, sends a HTTP-request and waits for the response. It runs on the same machine as the server. When I start many threads simultaneously, the server sometimes refuses connections (I get a ConnectException on client side). The tomcat logfile shows nothing unusual. Does someone know a possible reason for this behaviour or even a solution ? (I suspect that the "connection request queue" (I don't know the correct term ) of the operating system is too short, but where can i adjust this ?) Thanks in advance, Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Connection refused under hight load
-Original Message- From: Chris Janicki [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 3:32 PM To: [EMAIL PROTECTED] Subject: RE: Connection refused under hight load Are you using Java 1.3 by any chance? Yes, I'm using JDK 1.3. Bye, Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Connection refused under hight load
I believe there is a serious threading bug in 1.3 right now. Java Bug Parade bug# 4293268 may be related. I have also had an application (not Tomcat) hand under heavy load. That same application seems to be working fine on Java 1.2.2.5. Fyi, my experiences were on Solaris 7 OS, but I believe the problem is in HotSpot design, and may not be machine dependent. Bottom line: try Java 1.2.2.5 Original Message On 2/8/01, 11:13:15 AM, "Markus Ebersberger" [EMAIL PROTECTED] wrote regarding RE: Connection refused under hight load: -Original Message- From: Chris Janicki [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 3:32 PM To: [EMAIL PROTECTED] Subject: RE: Connection refused under hight load Are you using Java 1.3 by any chance? Yes, I'm using JDK 1.3. Bye, Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]