increase concurrent request

147 views
Skip to first unread message

sgoel

unread,
Feb 2, 2012, 2:23:30 PM2/2/12
to Phusion Passenger Discussions
We have ruby on rail web application. During training session of our
product, all users (around 25 people) were asked to log-in into our
web application. It locked up the server!

It looks like my application is not taking more than 6 concurrent
request, all other requests block until done.
I tried increasing PassengerMaxPoolSize to 10. I also tried
PassengerMaxInstancesPerApp 10 and PassengerUseGlobalQueue on, no
help.
I verified that the new setting is "taking" by running passenger-
status, and it shows max of 10, current 6.
I have tons of swap space left (my production server will have more
RAM, so not an issue for more Rails processes).

My Env:
Apache2.2.21, passenger-3.0.2, ruby 1.8.7, Rails 2.3.5, OS: CentOS
release 5.5

Can someone please let me how to increase # of concurrent requests to
more than 6? Is there any setting that need to done on Passenger side
or Apache side?

Hongli Lai

unread,
Feb 6, 2012, 3:27:42 AM2/6/12
to phusion-...@googlegroups.com
Increasing PassengerMaxPoolSize should work. Phusion Passenger starts
another process whenever it detects that all existing processes are
busy. Did you not forget to restart your web server after having made
the change?

> --
> You received this message because you are subscribed to the Google Groups "Phusion Passenger Discussions" group.
> To post to this group, send email to phusion-...@googlegroups.com.
> To unsubscribe from this group, send email to phusion-passen...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/phusion-passenger?hl=en.
>

--
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)

sgoel

unread,
Feb 10, 2012, 4:56:02 PM2/10/12
to Phusion Passenger Discussions
Thanks for the reply.
I had restarted the web server. But, I still see the same result.

When i ran passenger-memory-stats shows as:

---- Passenger processes -----
PID VMSize Private Name
------------------------------
30500 3.8 MB 0.2 MB PassengerWatchdog
30503 14.8 MB 0.5 MB PassengerHelperAgent
30505 7.9 MB 4.8 MB Passenger spawn server
30508 7.4 MB 0.4 MB PassengerLoggingAgent
30586 86.3 MB 65.2 MB Rails: /usr/local/xx/ODP/root
31163 64.0 MB 45.4 MB Passenger ApplicationSpawner: /usr/local/xx/
ODP/root
31178 82.0 MB 56.9 MB Rails: /usr/local/xx/ODP/root
31530 85.3 MB 53.5 MB Rails: /usr/local/xx/ODP/root
31540 85.2 MB 53.4 MB Rails: /usr/local/xx/ODP/root
31552 85.2 MB 53.3 MB Rails: /usr/local/xx/ODP/root
31561 85.1 MB 53.4 MB Rails: /usr/local/xx/ODP/root

### Processes: 11
### Total private dirty RSS: 386.97 MB


And Passenger-status shows as

max = 10
count = 6
active = 6
inactive = 1
Waiting on global queue: 0

But, Apache processes shows more than 6 entries.

I have Apache worker not prefork. Does that matter?

Any help is highly appreciated.

Thanks
> > For more options, visit this group athttp://groups.google.com/group/phusion-passenger?hl=en.
>
> --
> Phusion | Ruby & Rails deployment, scaling and tuning solutions
>
> Web:http://www.phusion.nl/
> E-mail: i...@phusion.nl
Reply all
Reply to author
Forward
0 new messages