Tuning the Tomcat Thread Pool: Balancing Throughput and Stability
Learn how to tune the Tomcat Executor to prevent CPU exhaustion and connection refusals. This guide covers maxThreads, acceptCount, and the risks of thread starvation.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how to tune the Tomcat Executor to prevent CPU exhaustion and connection refusals. This guide covers maxThreads, acceptCount, and the risks of thread starvation.
I am trying to understand a latency pattern in Elasticsearch search requests that only appears when many clients query at once. Single-request latency looks fine, but as concurrency rises, response times grow roughly in proportion to load rather than staying flat. My understanding is that the search thread pool uses a fixed number of threads with an effectiv
Goal: shrink the memory footprint of a low-traffic Tomcat deployment enough to fit a cheaper hosting tier, by tuning the HTTP Connector's documented thread-pool limits rather than the heap alone. Two documented mechanisms are in play. The connector exposes maxThreads (long-standing default 200) and minSpareThreads (default 10), and worker threads reserve JVM
The goal is to determine whether the latency observed only when many search requests run concurrently is caused by search thread‑pool queuing or by other background activities such as translog flushes or refresh operations. To isolate the effect, index‑level settings that influence refresh and translog behavior (e.g., refresh_interval, translog.flush_thresho
TensorFlow Serving 2.13 uses a default thread pool with intra_op_parallelism=1 and inter_op_parallelism=1, limiting the number of concurrent execution threads. When multiple HTTP requests are issued simultaneously, the fixed pool creates contention that manifests as latency spikes, while isolated requests remain stable. The documented max_batch_size setting
Designing monitoring for intermittent connection limits in MariaDB requires separating true connection exhaustion from queuing behavior introduced by the thread pool plugin. The documented limits involve max_connections as a hard ceiling, wait_timeout governing idle session lifetime, and the thread_pool_size controlling how many worker threads service incomi
I am configuring a Dropwizard service (assuming Dropwizard 2.x/3.x with the default embedded Jetty server) that must absorb short bursts of concurrent requests without the latency inflation that appears when the Jetty thread pool saturates and requests pile up in the bounded queue. The documented server.applicationConnectors and thread-pool settings ( minThr
Goal Reduce latency spikes that appear only when many concurrent future calls are made in Racket 8.6. Background The future library shares a thread pool whose idle threads are evicted after a period specified by the --thread-evict flag (default 60 s). The Racket manual provides no runtime API to query or change this timeout, so the eviction period is fixed f
Ren'Py’s renpy.fetch API launches a new Python thread for each asset download, queuing requests before dispatching them to the operating system. The implementation relies on a single, internally defined thread pool whose size is hard‑coded and not exposed to the game developer. Because Python’s Global Interpreter Lock serializes bytecode execution, CPU‑bound