Message-ID: <1175094972.30567.1408680012518.JavaMail.email@example.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_30566_1999909810.1408680012518" ------=_Part_30566_1999909810.1408680012518 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.