Phusion Passenger PassengerMaxInstancesPerApp似乎不起作用

时间:2013-10-30 18:45:31

标签: passenger

我在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)。

感谢。

萨姆

0 个答案:

没有答案