2

Is there any way to monitor and kill Phusion child processes that are using too much memory or cpu with monit?

There are many examples for Apache, but since Phusion runs in its own process, runaway Rails threads do not trigger the monit rules for Apache.

Thanks!

Andrew
  • 21
  • 2

1 Answers1

0

Is there any way to monitor and kill Phusion child processes that are using too much memory or cpu with monit?

It is a symptom of application leaking memory. I would rather fix the source of problem rather than expecting a tool to monitor and kill processes.

That said, Passenger Enterprise ( non-free product ) has the option to automatically kill the appserver process and respawn when the application reaches a certain amount of memory.

Note: I do not have any affliation with Phusion, the creator of Passenger. I'm just an user of their Enterprise product.

Shyam Sundar C S
  • 1,063
  • 8
  • 12