5

我在 Ubuntu 服务器上的 Apache 服务器上有许多 Ruby on Rails 应用程序。我在 /etc/apache2.conf 中设置了以下内容。

PassengerMaxInstancesPerApp 2

但是,当我检查“乘客状态”时,我发现以下内容。

/home/ssk/public/myapp#default:
  App root: /home/ssk/public/myapp
  Requests in queue: 0
  * PID: 17270   Sessions: 0       Processed: 537     Uptime: 1h 30m 16s
    CPU: 0%      Memory  : 92M     Last used: 23s ago
  * PID: 20175   Sessions: 0       Processed: 484     Uptime: 59m 9s
    CPU: 0%      Memory  : 87M     Last used: 23s ago
  * PID: 20244   Sessions: 0       Processed: 535     Uptime: 58m 23s
    CPU: 0%      Memory  : 87M     Last used: 23s ago
  * PID: 20256   Sessions: 0       Processed: 480     Uptime: 58m 20s
    CPU: 0%      Memory  : 88M     Last used: 23s ago
  * PID: 20278   Sessions: 1       Processed: 511     Uptime: 58m 5s
    CPU: 0%      Memory  : 87M     Last used: 0s ago
  * PID: 21024   Sessions: 0       Processed: 319     Uptime: 49m 6s
    CPU: 0%      Memory  : 91M     Last used: 23s ago
  * PID: 25326   Sessions: 0       Processed: 121     Uptime: 5m 30s
    CPU: 0%      Memory  : 86M     Last used: 23s ago

/home/kuamerica/public/myapp2#default:
  App root: /home/kuamerica/public/myapp2
  Requests in queue: 0
  * PID: 23253   Sessions: 0       Processed: 210     Uptime: 31m 10s
    CPU: 0%      Memory  : 94M     Last used: 2s ago

如您所见,一个应用程序有 7 个实例。为什么它没有按预期工作?

供您参考,myapp 不是 Rack,而是 Classic Rails (2.3)。

谢谢。

山姆

4

0 回答 0