Passanger keeps restarting Node.js app
Hello
I have Passenger on Apache running my node.js app. But looks default Passagener behavior is to restart the app after some time of inactivity. Maybe that is wanted behaviour but I would like to keep that app alive, as long as possible. At least to try. I found out that this can be bypassed by editing configuration file:
/etc/apache2/conf.d/passanger.conf
and add:
PassengerPoolIdleTime 0
but that is not working. Please advise.
Kind regards
-
Hey there! After you added that configuration option to the passenger.conf file, did you restart the Passenger or Apache service to ensure it's loading the new configuration?
0 -
Thank you very much for reply.
Maybe. I did now. I also set PassengerEnabled to on now since no one else but me on the server has node app and I can set this globally. I will test during the weekend.
<IfModule mod_passenger.c>
PassengerRoot /opt/cpanel/ea-ruby27/root/usr/share/passenger/phusion_passenger/locations.ini
PassengerEnabled on
# NOTE: Disabling this directive will allow users to
# set Passenger directives in their .htaccess files.
# This will allow them to bypass the 'MAXPASSENGERAPPS' limits
# enforced by the "Application Manager" feature.
PassengerDisableHtaccess on
PassengerPoolIdleTime 0
PassengerDefaultRuby /opt/cpanel/ea-ruby27/root/usr/libexec/passenger-ruby27
PassengerDisableSecurityUpdateCheck on
PassengerInstanceRegistryDir /opt/cpanel/ea-ruby27/root/var/run/passenger-instreg
</IfModule>0 -
It keeps restarting still. I don't get it.
Maybe I have to do that in htaccess file but i red that is recommended like this in passenger config for better performance?
0 -
I'm not sure what could be causing that - it would likely be best to submit a ticket so we could review the situation.
0 -
So that is that then, there is nothing else...
I would open a ticket, but looks like after years of support access I don't have support rights anymore. It says that the license is with Server4You GmbH and that cPanel provides support only to direct customers and partners but they should be partners since they have your "metal license" as I understood. Then the only option for me is to pay an administrator to fix this up. Thank you very much anyways! Always had the best support, truly. Kind regards
0 -
That's correct - you would contact wherever you purchased the license for support, and if they can't resolve the issue they can reach out to us directly.
1 -
I understand. Thank you very much.
0
Please sign in to leave a comment.
Comments
7 comments