1

I am working on a Rails 3 project which was using Mongrel as web server but now I changed it to Passenger web server. And because of this my application respond very slowly. So I want to know about the performance difference between these two server in production environment.

Nishant Upadhyay
  • 639
  • 7
  • 20
  • Can you confirm that the setting are basically the same? For instance does the `PassengerMinInstances` configuration match the number of Mongrel instances you had before? Do you have `PassengerPreStart` configured? – spickermann Feb 12 '15 at 05:31

1 Answers1

2

First of all, Passenger shouldn't be too slow. Unless you're dealing with some significant traffic, I imagine any inherent performance differences between passenger and mongrel shouldn't matter too much. Most likely, the slowness is caused by the way you've got passenger configured.

Does it respond slowly only when you haven't sent a request in a while? If so this should help: Slow initial server startup when using Phusion Passenger and Rails

I remember having this issue with passenger a while ago, and resolving it. I don't remember exactly what I did but if you google it I do know there's a lot of info, so I'd start with that and update your question once you have some more specifics.

Community
  • 1
  • 1
joshua.paling
  • 13,762
  • 4
  • 45
  • 60
  • Thanks buddy! I got some useful references from your suggested link and the problem was in my configurations. Now It works smoothly. – Nishant Upadhyay Feb 17 '15 at 08:50