# SSL Slow Loads with ssl\_required

**URL:** <https://www.ruby-forum.com/t/ssl-slow-loads-with-ssl-required/150824>\
**Category:** Rails\
**Created:** [October 13, 2008, 9:08pm UTC](https://www.ruby-forum.com/t/ssl-slow-loads-with-ssl-required/150824 "2008-10-13T21:08:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [October 13, 2008, 9:08pm UTC](https://www.ruby-forum.com/t/ssl-slow-loads-with-ssl-required/150824/1 "2008-10-13T21:08:06Z")

</div>

This problem has had me stumped for three days now, and I’m really  
running short on ideas. Really hope somebody else out there has some  
expertise on the mysterious ways of the SSL.

I’m running a Rails 2.0.2 Mongrel cluster behind an Apache proxy, and  
_sometimes_ for some reasons that I can not understand, my SSL pages  
are getting atrociously slow… like 1-3 minutes to load.

I have verified that it is not any external addresses or pages that I  
include in my SSL pages, nor are there any problems with the non-SSL  
pages. Also, the DNS lookup for the SSL pages is as zippy as it ought  
to be.

I’ve been running my cluster with this configuration for several  
months now, and the problem has only started happening in the last  
week or so. There is nothing out of the ordinary with our traffic  
pattern this week… though I have anecdotally observed that the  
problem seems to happen most often during times of high traffic.

If you’d like to see it in action, the site is [http://www.bonanzle.com](http://www.bonanzle.com)  
and if you click either the “Register” or “Login” link (upper right  
corner) during high traffic times, and you’re unlucky, you can see it  
in action.

One of the qualities that makes this problem so hard to track down is  
that there is nothing out of the ordinary in any log file. Apache  
just tells me its handing the request off to Mongrel, nothing in  
error.log. Mongrel tells me that it redirects the page in less than a  
second.

Your help is greatly appreciated!  
Bill
