Thanks Yoav,
I'll test my program with some of the programs you suggested and I'll send the results.
I'm working in Pentium IV 2.4 with 512MB with W2000.
I've done tests when the 300 thread were created. Moreover, Tomcat shows a message when you try to create a new thread for a new request and it is in the upper limit set in the sever.xml.
But In this case the requests had to be every 20ms.
My goal is 1000 request per second, so concurrently there will quite a lot.
With my program I create 1000 threads and each thread sends a request, so all of them aren't concurrently working, I suppose.
But anyway, do you know if I have to take into account any parameter in tomcat configuration?
Thanks
Jorge Shapira, Yoav wrote:
Hi, For starters, use a standard benchmarking or profiling program so that others believe and can reproduce your results. Programs like JMeter, ab, grinder, wget, are freely available and widely used for these sorts of tests.
I don't know if Windows (you didn't mention what version you use) can handle 300 concurrent threads on your hardware (which you also didn't specify).
Finally, note that servings 1000 requests per second is not the same as serving 1000 concurrent requests. So you might want to be a bit more precise in your goals ;)
Yoav Shapira Millennium Research Informatics
by-----Original Message----- From: Jorge Sopena [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 14, 2004 11:38 AM To: Tomcat Users List Subject: How many connections can be made to Tomcat on Windows?
Hi everybody,
I'm having a problem with the maximun connections in Tomcat.
In theory, the number of connections accepted by Tomcat is determined
acceptCount="100"the <Connector> elements in the server.xml configuration file. The maxProcessors attribute sets the total number of threads that can run simultaneously and the acceptCount attribute controls the number of requests that may be queued waiting for a connection.
I've done my own program to send hundreds of requests concurrently, but the response in the majority is "Exception:java.net.ConnectException:connection refuse" I did several tests, and I realized that if I send a request each 20mseconds I can send around 200 requests without problems. But if I send, for example 20 requests uninterruptedly, 4 or 5 requets are rejected with java.net.ConnectException. If I increae the number of requests the problem is even worst.
I'm using tomcat 5.0, and the configuration in my server.xml is:
<Connector port="8080" maxThreads="300" minSpareThreads="25"
maxSpareThreads="75"
enableLookups="false" redirectPort="8443"
it?debug="0" connectionTimeout="20000" disableUploadTimeout="true" />
So, is the problem because of Tomcat and I should configure anything else? or should I customize something in the JVM or Windows?
My goal is to be able to serve 1000 requests/second. Any hint how to do
Thanks, in advance.
Jorge sopena
This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- ============================================================== Jorge Sopena Torres SIDSA (Semiconductores Investigaci�n y Dise�o, S.A.)
Parque Tecnol�gico de Madrid c/ Torres Quevedo, n� 1 28760 TRES CANTOS (Madrid) (SPAIN)
Phone : +34 91 803 5052 Fax: +34 91 803 9557
e-mail: [EMAIL PROTECTED] URL: http://www.sidsa.com
==============================================================
