How to Verify the Configuration in the Passenger

Asked 2 years ago, Updated 2 years ago, 44 views

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>

ruby-on-rails apache passenger

2022-09-29 22:36

1 Answers

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.


2022-09-29 22:36

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.