# Help with modrails and Apache2

**URL:** <https://www.ruby-forum.com/t/help-with-modrails-and-apache2/135716>\
**Category:** Rails\
**Created:** [April 24, 2008, 1:08pm UTC](https://www.ruby-forum.com/t/help-with-modrails-and-apache2/135716 "2008-04-24T13:08:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [April 24, 2008, 1:08pm UTC](https://www.ruby-forum.com/t/help-with-modrails-and-apache2/135716/1 "2008-04-24T13:08:17Z")

</div>

I am using modrails and Apache2. The first time I use my app it goes  
very slow but later it goes very fast. If I don’t use the app during 20  
min, again the first clic goes very slow and later it goes fast. What’s  
the problem?

---

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [April 24, 2008, 4:11pm UTC](https://www.ruby-forum.com/t/help-with-modrails-and-apache2/135716/2 "2008-04-24T16:11:36Z")

</div>

You might go over to the mod\_rails forum and try posting there.

Also, I just now saw this post after replying to your earlier one. My  
response there is useless if you are using mod\_rails.

-Danimal

P.S. I’m still working on switching to mod\_rails, otherwise I’d try  
fiddling and see what I could find out. I’m very interested in this,  
though, as I’m considering migrating to mod\_rails for all my hosted  
rails apps. So if you do discover a solution, please post it!

On Apr 24, 5:08 am, John S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [April 24, 2008, 4:12pm UTC](https://www.ruby-forum.com/t/help-with-modrails-and-apache2/135716/3 "2008-04-24T16:12:55Z")

</div>

Where IS the mod\_rails forum??

---

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [April 24, 2008, 5:31pm UTC](https://www.ruby-forum.com/t/help-with-modrails-and-apache2/135716/4 "2008-04-24T17:31:57Z")

</div>

This is actually to be expected to an extent with the default  
configuration. Basically there is a connection pool and if there are no  
hits for a given period of time than the connections are destroyed. Once  
a request occurs, the connections are brought back up online. This can  
take a second or two. That might not be 100% technically correct but  
thats the idea.

However, this can be tweaked by playing with two variables in the apache  
config

- RailsPoolIdleTime
- RailsMaxPoolSize

By extending the idle time and lowering pool size, you can simulate a  
mongrel type situation with processes that run for a long time.

[http://www.modrails.com/documentation/Users%20guide.html](http://www.modrails.com/documentation/Users%20guide.html)

---

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [April 25, 2008, 7:11am UTC](https://www.ruby-forum.com/t/help-with-modrails-and-apache2/135716/5 "2008-04-25T07:11:45Z")

</div>

[http://groups.google.com/group/phusion-passenger](http://groups.google.com/group/phusion-passenger)

Mod\_rails was originally called Phusion.

enjoy!

-Danimal

---

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [April 24, 2008, 10:37pm UTC](https://www.ruby-forum.com/t/help-with-modrails-and-apache2/135716/6 "2008-04-24T22:37:21Z")

</div>

On 24 avr, 16:10, Danimal [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> You might go over to the mod\_rails forum and try posting there.

So there ise a mod\_rails forum! Where it is please?

– Maurice
