摘要:
ThreadPoolExecutor介绍 通过 ThreadPoolExecutor 创建线程池,API 如下所示: public ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUn 阅读全文
摘要:
CPU 资源占用过高 top 查看当前 CPU 情况,找到占用 CPU 过高的进程 PID=123。 top -H -p123 找出两个 CPU 占用较高的线程,记录下来 PID=2345, 3456 转换为十六进制。 jstack -l 123 > temp.txt 打印出当前进程的线程栈。 查找 阅读全文