threadpoolexecutor - Explanation maxQueueSize in tomcat executor -


please clarify meaning of parameter maxqueuesize in tomcat executor.

an additional question - whether linked acceptcount in tomcat connector?

thanks in advance.

this mentioned here

each incoming request requires thread duration of request. if more simultaneous requests received can handled available request processing threads, additional threads created configured maximum (the value of maxthreads attribute). if still more simultaneous requests received, stacked inside server socket created connector, configured maximum (the value of acceptcount attribute). further simultaneous requests receive "connection refused" errors, until resources available process them.

maxqueuesize : -the maximum number of runnable tasks can queue awaiting execution before reject them. default value integer.max_value

the parameter acceptcount related tcp queue. in queue os can hold number of connections though cannot processed immediately. concept os specific - linux can understand referring here , more insights here.

maxqueuesize queue holding actual request processing tasks can run atmost maxthreads number of threads. in queue reason number of processing threads limited , task spends time in queue before being picked executor , assigned thread free execute task.


Comments