当前位置:网站首页>Reasonably configure thread pool
Reasonably configure thread pool
2022-06-12 19:19:00 【InfoQ】
Reasonable configuration of thread pool
- Nature of task :CPU Intensive task 、IO Intensive tasks and hybrid tasks .
- Task priority : high 、 And low .
- Task execution time : Long 、 And short .
- Task dependency : Whether to rely on other system resources , Such as database connection .
Thread pool monitoring
- taskCount: The number of tasks that the thread pool needs to perform .
- completedTaskCount: The number of tasks completed by the thread pool during the run , Less than or equal to taskCount.
- largestPoolSize: Maximum number of threads ever created in the thread pool . Through this data, we can know whether the thread pool has been full . If the value is equal to the maximum size of the thread pool , Indicates that the thread pool has been full .
- getPoolSize: Number of threads in the thread pool . If the thread pool is not destroyed , Threads in the thread pool will not be destroyed automatically , So this size just keeps growing .
- getActiveCount: Get the number of active threads .
边栏推荐
- Experiment 10 Bezier curve generation - experiment improvement - control point generation of B-spline curve
- 数据库全量SQL分析与审计系统性能优化之旅
- Redis (XXXII) - using redis as a distributed lock
- Leetcode 474. One and zero
- Native servlet - upload & download of files
- 5g R17 standard is frozen. What does it say?
- 存储体系概述
- Global and Chinese smart government industry market research and investment risk outlook report 2022-2028
- leetcode:5259. Calculate the total tax payable [simple simulation + see which range]
- Tarfile decompress nested tar
猜你喜欢

【数字IC/FPGA】数据累加输出

no available service ‘null‘ found, please make sure registry config correct

Research Report on the overall scale, major manufacturers, major regions, products and application segments of lifeboats in the global market in 2022

A fruitful afternoon

I was badly hurt by the eight part essay...

Have a meal, dry pot, fat intestines + palm treasure!

Start with no place to live

"As a service", the future has come, starting from the present | new mode of it consumption, FOD billing on demand

Leetcodesql: count the number of students in each major

攻防世界(web篇)---supersqli
随机推荐
Mysql database (28): Variables
Detailed explanation of yolox network structure
Add, delete, modify and query mysql, common MySQL commands
The Bean Validation API is on the classpath but no implementation could be found
vc hacon 联合编程 GenImage3Extern WriteImage
Istio 1.14 发布
【数字IC/FPGA】数据累加输出
什么是数据驱动
On how to make digital transformation after the loan of large policy banks- Yixinhuachen
Wireshark basic commands
Six stone cognition: the apparent and potential speed of the brain
合理地配置线程池
leetcode:6097. 替换字符后匹配【set记录 + 相同长度逐一查询】
io. seata. common. exception. FrameworkException: can not connect to services-server.
Cookie & Session & kaptcha验证码
Lua record
CVPR 2022 oral Dalian Institute of technology proposed SCI: a fast and powerful low light image enhancement method
Leetcode 474. One and zero
Méthode de sauvegarde programmée basée sur la base de données distribuée elle - même
Have a meal, dry pot, fat intestines + palm treasure!