Hi: I was testing my servlet under Apach-Tomcat envirment in Linux system. I opened 200 threads in my Win 2000 and kept opening URLConnections and sent some String to the servlet using DataOutputStream dateOut = new DataOutputStream(conn.getOutputStream());. After a period of time, a lot of threads was failed to connect to the servlets by throwing java.net.ConnectionException. I checked Linux machine, and I found a lot of sockets were opend by my test client and were not closed and waiting time out. Is it normal that all these tcp connection did not close by themself and is it the reason that some URLConnection was rejected? How can I fix the problem? Is there any limitations with my Linux machine or TomCat on the number of TCP socket (by URLConnection on port 8080) connections? How can I check it and change the number? Thanks Yaogeng
