I am using tomcat 3.3
Now I am calling one jsp which loads an applet, internally that applet uses
url connection to fetch data.
Now problem is that when i check with netstat application(its inbuilt in win
nt, run through netstat -n)
I came to know tomcat opens no of connections and keep them in TIME_WAIT
mode.
This is happening with simple jsps as well as with servlet. For each request
it opens around 2/3(depending on the no of jsps included) connection with
<host-ip>:8080 port. These all are of tcp type connections.
I read in some of materials that in Http 1.1, as persistent connection is
used so it keeps the connection open unless I specify them to close.
I wrote in my code as response.setHeader("Connection", "close");
but still the no of open connection increases. In my application if hits are
many then it reaches to thousands.
Has any one seen this before(I think this is for all tomcat-You can check
with netstat).
Has any one explicitly closed the connection through header or is there any
way to specify in tocat configuration so it does not keep the connection
open.
Thanks
Taral Shah
Experience is what you get when you were expecting something else.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>