huangjIT
Results
2
comments of
huangjIT
> 这个可以给出具体的demo不?我测试了下,好像没获取到用户的栈。 ```java package com.hj; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; /** * @author HJ * @date 2021-05-26 **/ public class ThreadPoolTest { public static void main(String[] args) throws InterruptedException...
新增了按照指定采样频率来采集线程池数据,最后输出平均值的逻辑,这样能最大程度反应采样期间线程池的情况,新增了threadpool -d 命令来指定 采样总时长,threadpool -i 来指定采样频率,会在指令执行期间按指定频率采集线程池的繁忙线程数和队列堆积数,最后输出平均值