Content
You are here:
Passenger is killing my server
Added by Don Sefer over 9 years ago
hi,
I have a big problem with Passenger. I am running a vserver with 1gig ram and 1gig burst, some kind of cpu :)
I installed via my following guide here: https://community.openproject.org/topics/4192
I am limited to 128 numprocs (processes/threats) and everytime I access OpenProject or doing some task like trying to synchronize with taskconnector, its overkilling my server.
There will be several “Passenger RubyApp: /openproject”, AppPreloader, PassengerAgent Server and other tasks/threats. Way too much I think.
Is it possible to limit this somehow? It is a single user trying to load the site and thats enough for the server :-(
Replies (3)
Hi Don,
what could work is if you limit the pool size, i.e. set
PassengerMaxPoolSize
to 1 or 2 inapache2.conf
. Hopefully, I will find more time tomorrow to test this.What is the number of your processes (
ps aux | wc -l
)?Best,
Jonas
Hi Don,
on an ubuntu system I had the following numbers of processes:
So I think limiting this setting is the only thing to decrease the number of processes. But there is only a small change. If that is not enough we would have to look at the concurrency settings of apache itself.
By the way, I think I was wrong before. The setting should not go into
apache.conf
but much rather inmods-available/passenger.conf
like thisBest,
Jonas
Hi,
htop says:
tasks: 32
threads: 68
ps aux: 38
One user access:
ps aux: 39
tasks: 35
threads: 81
I am using nginx, not apache. So unfortunately this conf won’t help me :(
When accessing timeline, the first time everything is alright. second time memory overload and nothing works anymore…
Guess I have to change servers ASAP… Only problem is I need a full backup for this.