I use apache+passenger
$passenger-config about version
4.0.58
For example, I set the value of PassengerPoolIdleTime, is there any way to check it?
/etc/httpd/conf/httpd.conf
<IfModule mod_passenger.c>
PassengerRoot/home/app/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/passenger-4.0.58
PassengerDefaultRuby/home/app/.rbenv/versions/1.9.3-p547/bin/ruby
PassengerPoolIdleTime1200
</IfModule>
The PassengerPoolIdleTime is a setting that kills processes after the configured idle time, but there is also a setting called PassengerMinInstances.This setting specifies the minimum number of processes to maintain, but defaults to 1.
Therefore, if you set PassengerMinInstances to 0 and wait for the number of seconds set in PassengerPoolIdleTime, the process will kill.
© 2024 OneMinuteCode. All rights reserved.