Message-ID: <1025323842.4601.1406329971117.JavaMail.firstname.lastname@example.org> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_4600_2141667087.1406329971117" ------=_Part_4600_2141667087.1406329971117 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.