We have one servlet which is deployed in Tomcat 5.It will connect to DB and extract the records from the DB.Some times records count will be very high.When the records are more , the first request is running (it took some time to extract and load ), but at the same time , the new thread is again starting to extract the records.So two threads are running now. After some time , third thread is started automatically and it is kepp going.All are for only one request from the browser.We are very much sure that we are not refreshing the page.
is there any configuration need to set to stop the new threads creation for the same request ?
It's generally not good practice to do things that can take a long time in the HttpRequest thread. For one thing, since there are only a finite number of threads in that pool, you risk having the server logjam on you.
You may not be automatically refreshing the page, but are you sure that the user isn't getting impatient when nothing comes back and re-clicking the Submit button?
Customer surveys are for companies who didn't pay proper attention to begin with.