当前位置:网站首页>Clickhouse thread occupation troubleshooting and killing

Clickhouse thread occupation troubleshooting and killing

2022-06-24 04:11:00 jasong

ps H  -o 'tid comm' $(pidof -s clickhouse-server) | awk '{print $2}'  | sort | uniq -c | sort -rn
    354 QueryPipelineEx
     16 BgDistSchPool
     15 TCPHandler
     10 clickhouse-serv
      6 BgSchPool
      5 HTTPHandler
      3 SystemLogFlush
      2 ExterLdrReload
      2 ConfigReloader
      1 ZooKeeperSend
      1 ZooKeeperRecv
      1 TraceCollector
      1 SessionCleaner
      1 DDLWorkerClnr
      1 DDLWorker
      1 COMMAND
      1 BgSchPool/D
      1 BgDistSchPool/D
      1 AsyncMetrics
      
      
for i in $(ls -1 /proc/$(pidof clickhouse-server)/task/); do  echo $i ; done
原网站

版权声明
本文为[jasong]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/09/20210910184020049o.html