How to limit Phusion Passenger memory usage?

后端 未结 6 1589
-上瘾入骨i
-上瘾入骨i 2021-02-20 09:29

Is there a way to limit the amount of memory Phusion Passenger uses when serving up your app?

My host comes by and kills the process after I get a bunch of traffic and

6条回答
  •  佛祖请我去吃肉
    2021-02-20 10:10

    There is no way to limit the memory usage explicitly (say use <= 100MiB).

    But what you can do is limit the number of processes by setting PassengerMaxPoolSize. Set that and then see how is the memory usage (that depends on the apps you are running).

    Also, using Ruby Enterprise Edition may help.

提交回复
热议问题