Doesnt seem right,
Client makes a request, Tomcat gets request, starts a thread and returns response, then client makes another request and it hangs until thread is complete, if I understand correctly.
I think it should work...
I think its something like the header size is wrong, or the client is not closing the input buffer.... thats what I think you need to look for. I think what is happening is that the client connection is holding on a keep alive, ie it thinks it hasnt got all the data, and its waiting for it, something like that.

What you could try, its to open two connections, and call it twice... I think you will find that tomcat happily serves both. Or you could force that connection to disconnect, and open another, I think tomcat will react immediately. I think the client is not releasing the connection, and because you using the same connection to call twice, it only releases when tomcat literally dumps the http request object, and thats only after the thread is complete. One would think that tomcat has more than enough thread capacity to serve just 2 thread (requests), so I expect something is telling the client its not finished. For example, I imagine that if the header size setting was 100 bytes, and you only read 50, and the client would stay open until the server told it to get lost....
I'm guessing ;)


----- Original Message ----- From: "Siraj Haider" <[EMAIL PROTECTED]>
To: <users@tomcat.apache.org>
Sent: Monday, June 11, 2007 8:00 PM
Subject: Thread Pool


I am using tomcat version:5.5.20 java version:1.6.0-b105 os version:
intel solaris 5.10
scenario is: my java program call a servlet which return to my java
program using sendData and then goes into a loop to perform other
functions.  Now after i get the control back in my java program i try to
call another servlet on the same tomcat, but it waits until the previous
servlet call (which was in a loop to perform other functions) is done.
I have these settings in my servler.xml for thread pooling:
maxThreads="1000" minSpareThreads="100" maxSpareThreads="200"
acceptCount="500".  Can somebody please how to fix this problem ?



This electronic mail message and any attachments may contain information which is privileged, sensitive and/or otherwise exempt from disclosure under applicable law. The information is intended only for the use of the individual or entity named as the addressee above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution (electronic or otherwise) or forwarding of, or the taking of any action in reliance on, the contents of this transmission is strictly prohibited. If you have received this electronic transmission in error, please notify us by telephone, facsimile, or e-mail as noted above to arrange for the return of any electronic mail or attachments. Thank You.



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to