Check patentability & draft patents in minutes with Patsnap Eureka AI!

Thread pool capacity adjustment method and apparatus based on system response time and device

A system response and capacity adjustment technology, applied in the field of computer systems, can solve problems such as waste of system resources, high requirements for system response time, inability to adapt to real-time state changes, and user needs, etc., to achieve the effect of improving user experience and flexible adjustment methods

Inactive Publication Date: 2018-12-11
山东中创软件商用中间件股份有限公司
View PDF5 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Unable to adapt to real-time state changes and user needs
However, the capacity of the thread pool determines the number of concurrent tasks that can be processed within a specified time. If the capacity of the thread pool is too small, all tasks are queued up to enter the thread pool, causing congestion; if the capacity of the thread pool is too large, then Will cause waste of system resources
In particular, in application scenarios where the system response time is high and the system needs to respond quickly, the existing thread pool adjustment strategy cannot meet user needs

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Thread pool capacity adjustment method and apparatus based on system response time and device
  • Thread pool capacity adjustment method and apparatus based on system response time and device
  • Thread pool capacity adjustment method and apparatus based on system response time and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0042] Please refer to figure 1 , figure 1 It is a flowchart of a thread pool capacity adjustment method based on system response time in an embodiment of the present invention, which is applied to server thread pool capacity adjustment, and the method includes the following steps:

[0043] S101. Periodically collect the system response time of the preset access path.

[0044] In the embodiment of the present invention, the access path may be preset, and the access path may be the access path for the user to access the system, or a dedicated path for testing the response time of the system. The specific route of the access path can be preset, and can also be determined and adjusted according to the actual situation. Certainly, in the embodiment of the present invention, the number of access paths may be one or multiple, and the specific number of access paths may be confirmed and adjusted according to actual needs, and details are not repeated here.

[0045] Specifically, s...

Embodiment 2

[0063] Please refer to figure 2 , figure 2 It is a flowchart of another thread pool capacity adjustment method based on system response time in an embodiment of the present invention, the method includes the following steps:

[0064] S201, start the self-tuning mode.

[0065] In the embodiment of the present invention, after the self-tuning mode of the server is started, the capacity of the thread pool is optimized. That is, the optimization of the thread pool is only started when the server provides external services.

[0066] S202. Acquire a reference parameter, where the reference parameter includes an access path and a response time threshold.

[0067] Wherein, the benchmark parameters can be set in advance, or after the self-tuning mode is activated, the benchmark parameters such as the access path and the response time threshold input by the administrator can be obtained. Specifically, the benchmark parameters include, but are not limited to, access paths and respo...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a thread pool capacity adjustment method based on system response time. The method comprises the following steps: periodically collecting a system response time of a preset access path; calculating an average value of a system response time acquired continuously for a plurality of times within a predetermined time; judging whether the average value is greater than a presetresponse time threshold; if so, using a hill-climbing algorithm to calculate the optimal capacity value of the thread pool, and the optimal capacity value is used as the thread pool capacity. The hill-climbing algorithm is utilized to adjust the capacity of a thread pool, so the mode is more flexible than a conventional fixed parameter mode, can reduce blockage and waste of system resources, and can improve the user experience. The invention also discloses a thread pool capacity adjusting apparatus based on system response time, a device and a readable storage medium, which have the corresponding technical effects.

Description

technical field [0001] The present invention relates to the technical field of computer systems, in particular to a thread pool capacity adjustment method, device, equipment and readable storage medium based on system response time. Background technique [0002] Thread pool technology can be used to improve the responsiveness, robustness, and overall performance of computer systems. It provides a number of fixed threads to serve a large number of tasks in turn. When a thread completes a task, it does not destroy it immediately, but takes over another task, thereby reducing the resource consumption of creating and destroying threads and maximizing the use of the system. resource. [0003] At present, the thread pool adjustment policy is adjusted between the minimum value and the maximum value set by the user according to the preset fixed adjustment rules. That is, the size and direction of each adjustment are fixed. It cannot adapt to real-time state changes and user needs...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/48G06F9/50
CPCG06F9/4881G06F9/5027G06F2209/5011G06F2209/5018
Inventor 赵欣高隆林翟鲁超杨传艳
Owner 山东中创软件商用中间件股份有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More