I have deployed a pretty big application that is used all across the country (Canada), meaning lots of concurrent connections.
Recently we have reached the maximum amount of concurrent threads as our jBoss was configured to 40 maximum threads. Now it is 250 so we are fine.
Every now and then I am looking at the Tomcat status page, and I see threads to javascript files, css files, struts (java) actions, etc.
How could a thread on a javascript or css file be alive for my than a few seconds? I thought the thread was only during the page load (when the client downloads the javascript file to cache). Am I right?
Example entry
Stage: S
Time: 1127110823 ms
B Sent: 0 KB
B Recv: 0 KB
Client: client's ip address...
VHost: server's vhost...
Request: GET /que/2715/jsp/common/js/jquery/jquery.maskedinput.js HTTP/1.1
This one is always here.. I don't understand why...
I would like to understand all these information and then change the way I code in order to free up some current threads.
Thank you for help
Charles