How to know the number of active threads in Puma

前端 未结 6 1949
太阳男子
太阳男子 2021-02-19 03:59

I am trying to see the number of active puma threads on my server.

I can not see it through ps:

$ ps aux | grep puma
healthd   2623  0.0  1.         


        
6条回答
  •  萌比男神i
    2021-02-19 04:52

    Number of puma threads for each worker:

    ps aux | awk '/[p]uma/{print $2}' | xargs ps -h -o nlwp
    

    Sample output:

       7
      59
      59
      61
      59
      60
      59
      59
      59
    

提交回复
热议问题