Non-intrusive thread pool dynamic management method and system
Through Java Agent technology and bytecode enhancement, dynamic management of thread pool parameters and adaptive queue adjustment are achieved, which solves the flexibility and intrusiveness problems of thread pool management and provides thread pool optimization capabilities with zero code modification.
Patent Information
- Application Number
- CN202511165643.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-20
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2045-08-20
AI Technical Summary
Existing thread pool management methods lack flexibility and timeliness. Static configuration adjustments require restarting the application, while dynamic management is costly and intrusive to the program.
The Java Agent intercepts the loading request of the thread pool class and performs bytecode enhancement. Combined with the configuration of the monitoring service and the adaptive queue capacity adjustment algorithm, dynamic management of thread pool parameters and adaptive adjustment of task queues are achieved.
It enables transparent adjustment of thread pool parameters at runtime without modifying application code. It has adaptive scaling capabilities, reduces transformation costs and risks, and is suitable for various thread pool usage scenarios.