I have a basic question on Tomcat thread creation. Does every browser instance run on a single thread or does it spawn multiple threads to process a single browser instance request?
I am taking a reference of the current thread in the code and calling the activecount method and it is showing 20 which indicates 20 active threads. So I have doubt from where this value is configured. Is there any parameter to set the active threads per
while (iter.hasNext()) {
GrammarSection agrammarSection= null;
try {
agrammarSection = (GrammarSection) iter.next();
} catch (Exception e) {
System.out.println("DDD if it come in exception "+Thread.currentThread());
System.out.println("DDD if it come in exception "+Thread.activeCount()); //IT PRINTS 20
Tomcat creates a pool of threads. Typically, one HTTP request is served by one thread.