I have some heavy perfomance issues with Passenger and ajax calls. It seems like every time I do an ajax call, a new ruby instance is started instead of using the one that responded to the original page request, making it really slow. The fact that multiple ajax requests can be made in just a few seconds doesn't make the situation better.
The action I am calling is in itself quite slow (it generates a PDF, which usually takes 5-10 seconds), but when called through Ajax, the response time is 1-3 minutes! This poses no problem in my development environment, as I am using a single mongrel instance, but Passenger really has trouble here.
I have tried the Apache/Passenger options provided for this SO question, but with no luck.
Anyone who has experienced similar issues and found a workaround?