发明申请
- 专利标题: MONITORING THREAD USAGE TO DYNAMICALLY CONTROL A THREAD POOL
- 专利标题(中): 监控螺纹用于动态控制螺纹池
-
申请号: US12027044申请日: 2008-02-06
-
公开(公告)号: US20080126539A1公开(公告)日: 2008-05-29
- 发明人: DWIP N. BANERJEE , KAVITHA VITTAL MURTHY BARATAKKE , VINIT JAIN , VENKAT VENKATSUBRA
- 申请人: DWIP N. BANERJEE , KAVITHA VITTAL MURTHY BARATAKKE , VINIT JAIN , VENKAT VENKATSUBRA
- 申请人地址: US NY ARMONK
- 专利权人: INTERNATIONAL BUSINESS MACHINES CORPORATION
- 当前专利权人: INTERNATIONAL BUSINESS MACHINES CORPORATION
- 当前专利权人地址: US NY ARMONK
- 主分类号: G06F15/173
- IPC分类号: G06F15/173
摘要:
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.
公开/授权文献
信息查询