Monitoring thread usage to dynamically control a thread pool
Abstract
A method, system, and program for monitoring thread usage to dynamically control a thread pool are provided. An application running on the server system invokes a listener thread on a listener socket for receiving client requests at the server system and passing the client requests to one of multiple threads waiting in a thread pool. Additionally, the application sends an ioctl call in blocking mode on the listener thread. A TCP layer within the server system detects the listener thread in blocking mode and monitors a thread count of at least one of a number of incoming requests waiting to be processed and a number of said plurality of threads remaining idle in the thread pool over a sample period. Once the TCP layer detects a thread usage event, the ioctl call is returned indicating the thread usage event with the thread count, such that a number of threads in the thread pool may be dynamically adjusted to handle the thread count.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 15 · Forward citations: 18.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method for monitoring thread usage in a server system, comprising: sending an ioctl call in blocking mode on a socket designated for listening for incoming client requests to a server communicatively connected to a network and passing said incoming client requests to one from among a plurality of threads waiting in a thread pool; responsive to a TCP layer detecting said listen socket in blocking mode, monitoring a thread count of at least one of a number of incoming requests waiting to be processed and a number of said plurality of threads remaining idle in said thread pool over a sample per
- Claim 2Depends on #1
The method according to claim 1 for m
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 18 total)
References Cited — Backward Prior Art (15)
Non-Patent Literature (1)
- General Programming Concepts: Writing and Debugging Programs http://www16.boulder.ibm.com/pseries/en<SUB>-</SUB>US/aixprggd/genprogc/understanding<SUB>-</SUB>threads.htm Accessible on Sep. 11, 2003.