乘客实例变得闲置,开始咀嚼CPU

时间:2015-01-07 01:03:08

标签: ruby-on-rails ruby ruby-on-rails-3 passenger cpu

以下是我受影响的生产实例之一的passenger-status输出:

Version : 4.0.53
Date    : 2015-01-07 00:59:55 +0000
Instance: 6919
----------- General information -----------
Max pool size : 8
Processes     : 8
Requests in top-level queue : 0

----------- Application groups -----------
/home/app/web#default:
  App root: /home/app/web
  Requests in queue: 0
  * PID: 7009    Sessions: 1       Processed: 1607    Uptime: 53m 19s
    CPU: 7%      Memory  : 217M    Last used: 2m 51s ago
  * PID: 7021    Sessions: 1       Processed: 1823    Uptime: 53m 19s
    CPU: 6%      Memory  : 217M    Last used: 2s ago
  * PID: 7032    Sessions: 0       Processed: 2241    Uptime: 53m 19s
    CPU: 7%      Memory  : 218M    Last used: 2s ago
  * PID: 7044    Sessions: 1       Processed: 1539    Uptime: 53m 19s
    CPU: 15%     Memory  : 209M    Last used: 14m 27s ago
  * PID: 7057    Sessions: 0       Processed: 1549    Uptime: 53m 19s
    CPU: 5%      Memory  : 217M    Last used: 1s ago
  * PID: 7074    Sessions: 1       Processed: 554     Uptime: 53m 18s
    CPU: 41%     Memory  : 220M    Last used: 41m 37s ago
  * PID: 7085    Sessions: 1       Processed: 1564    Uptime: 53m 18s
    CPU: 10%     Memory  : 219M    Last used: 7m 5s ago
  * PID: 7106    Sessions: 1       Processed: 14      Uptime: 53m 17s
    CPU: 56%     Memory  : 174M    Last used: 52m 30s ago

正如您所看到的,8个实例中有两个未在> 40分钟内使用,但它们正在咀嚼我机器的大部分CPU。关于如何进行调试的任何提示?

0 个答案:

没有答案