Message-ID: <1861701993.1097.1427490615803.JavaMail.email@example.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_1096_558607290.1427490615803" ------=_Part_1096_558607290.1427490615803 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
A thread pool ensures threads are used efficiently within the container.= A number of threads are created at initialization and placed in the pool. = When there is work to be done, for example to service a request, a free thr= ead from the pool is allocated and then returned to the pool when the work = has been completed.=20
The thread pool implementation availabile in Jetty is called org.mortbay.thread.BoundedThreadP= ool. It is called "Bounded" because it manages the size of th= e thread pool based on configurable minimum and maximum numbers of threads.==20
If there are no free threads when one is required, a new thread will be = created and placed in the pool if the maximum pool size has not been reache= d. If the maximum pool size is reached, jobs wait for a free threa= d. Idle threads in the pool will timeout and terminate until the minimum nu= mber of threads are running.=20
It is configured like so:=20 =20
Change the minimum and maximum threads in accordance with the load profi= le of your installation.