Passenger RackApp processes continually restart despite PassengerPoolIdleTime

319 views
Skip to first unread message

Joe Blauer

unread,
Dec 15, 2013, 10:15:03 AM12/15/13
to
I'm having long delays on page requests quite frequently. I've been experimenting with setting PassengerPoolIdleTime as high as possible and to zero, but regardless passenger-status always shows the RackApp processes never more than a few minutes old. 

For instance my PassengerPoolIdleTime is currently set at zero passenger-status shows the following:

Requests in queue: 0

  * PID: 2009    Sessions: 1       Processed: 0       Uptime: 1s

    CPU: 115%    Memory  : 0M      Last used: 1s ago

  * PID: 2020    Sessions: 0       Processed: 0       Uptime: 1s

    CPU: 115%    Memory  : 0M      Last used: 1s ago

  * PID: 2032    Sessions: 0       Processed: 0       Uptime: 1s

    CPU: 80%     Memory  : 0M      Last used: 1s ago

I can't imagine what would have happened to have spawned new processes a second ago.

I'm running passenger 4.0.29 on apache 2,2.

Anyone know what may be going on?

thanks.

Hongli Lai

unread,
Dec 16, 2013, 6:43:51 AM12/16/13
to phusion-passenger
Maybe your processes are crashing, causing Passenger to restart them. Check your web server error log. Passenger would tell you what it's doing, and why. If there's not enough information, try setting PassengerLogLevel to 1.


Anyone know what may be going on?

thanks.

--
You received this message because you are subscribed to the Google Groups "Phusion Passenger Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phusion-passen...@googlegroups.com.
To post to this group, send email to phusion-...@googlegroups.com.
Visit this group at http://groups.google.com/group/phusion-passenger.
To view this discussion on the web visit https://groups.google.com/d/msgid/phusion-passenger/01df92df-d574-4d98-938c-c14868a9948b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Phusion | Ruby & Rails deployment, scaling and tuning solutions

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)

Joe Blauer

unread,
Dec 16, 2013, 10:47:13 AM12/16/13
to phusion-...@googlegroups.com
Thanks for the response, Hongli.

Here's what the apache error_log shows:

[ pid=7358 thr=139791267161856 file=ext/common/ApplicationPool/Pool.h:906 time=2013-12-16 10:35:55.951 ]: Restarting /www/***/current
[ pid=7358 thr=139791267161856 file=ext/common/ApplicationPool/Pool.h:939 time=2013-12-16 10:35:55.951 ]: Spawning a process for /www/***/current because there are none for this app group
[ pid=7358 thr=139791267161856 file=ext/common/ApplicationPool/../SpawnManager.h:289 time=2013-12-16 10:35:55.951 ]: Spawning a new application process for /www/***/current...
[ pid=7644 thr=16220300 file=abstract_request_handler.rb:296 time=2013-12-16 10:35:55.951 ]: Exiting request handler main loop
[ pid=7638 thr=16220300 file=abstract_request_handler.rb:296 time=2013-12-16 10:35:55.951 ]: Exiting request handler main loop
[ pid=7630 thr=16220300 file=abstract_request_handler.rb:296 time=2013-12-16 10:35:55.951 ]: Exiting request handler main loop
[ pid=7358 thr=139791267161856 file=ext/common/ApplicationPool/../SpawnManager.h:410 time=2013-12-16 10:36:08.73 ]: Application process 8194 spawned
[ pid=7358 thr=139791266813696 file=ext/common/ApplicationPool/Pool.h:611 time=2013-12-16 10:36:08.73 ]: Background spawning a process for /www/***/current
[ pid=7358 thr=139791266813696 file=ext/common/ApplicationPool/../SpawnManager.h:289 time=2013-12-16 10:36:08.73 ]: Spawning a new application process for /www/***/current...
[ pid=7358 thr=139791266813696 file=ext/common/ApplicationPool/../SpawnManager.h:410 time=2013-12-16 10:36:08.90 ]: Application process 8204 spawned
[ pid=7358 thr=139791266813696 file=ext/common/ApplicationPool/Pool.h:611 time=2013-12-16 10:36:08.90 ]: Background spawning a process for /www/***/current
[ pid=7358 thr=139791266813696 file=ext/common/ApplicationPool/../SpawnManager.h:289 time=2013-12-16 10:36:08.90 ]: Spawning a new application process for /www/***/current...
[ pid=8194 thr=16220300 file=abstract_request_handler.rb:244 time=2013-12-16 10:36:08.109 ]: Entering request handler main loop
[ pid=7358 thr=139791266813696 file=ext/common/ApplicationPool/../SpawnManager.h:410 time=2013-12-16 10:36:08.112 ]: Application process 8210 spawned
[ pid=8204 thr=16220300 file=abstract_request_handler.rb:244 time=2013-12-16 10:36:08.128 ]: Entering request handler main loop
[ pid=8210 thr=16220300 file=abstract_request_handler.rb:244 time=2013-12-16 10:36:08.148 ]: Entering request handler main loop

Apparently it restarts the group every 5 minutes or so, but why?

I've also tried downgrading the passenger from 4.0.29 to 3.0.21, to see if it would help, but the behaviour remains the same.

thanks.


--

Hongli Lai

unread,
Dec 16, 2013, 1:33:18 PM12/16/13
to phusion-passenger
Maybe there's some program on your server that touches restart.txt?


--
You received this message because you are subscribed to the Google Groups "Phusion Passenger Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phusion-passen...@googlegroups.com.
To post to this group, send email to phusion-...@googlegroups.com.
Visit this group at http://groups.google.com/group/phusion-passenger.

For more options, visit https://groups.google.com/groups/opt_out.

Joe Blauer

unread,
Dec 16, 2013, 3:47:30 PM12/16/13
to phusion-...@googlegroups.com
restart.txt has not been touched since log rollover at 4AM:

-rw-rw-r-- 1 *** ***    0 Dec 16 04:02 restart.txt

You received this message because you are subscribed to a topic in the Google Groups "Phusion Passenger Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/phusion-passenger/VmPnMKv33lI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to phusion-passen...@googlegroups.com.

To post to this group, send email to phusion-...@googlegroups.com.
Visit this group at http://groups.google.com/group/phusion-passenger.

Hongli Lai

unread,
Dec 17, 2013, 5:33:20 PM12/17/13
to phusion-passenger
Could you send the full Nginx error log file? Maybe there's more information in there.

Also, you mentioned "downgrading" from 4.0.29 to 3.0.21. But your log output indicate that you have been running 3.0.x all along. Are you sure you installed 4.0.29 correctly?



For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages