# Sessions failing on debian apache2 fast\_cgi

**URL:** <https://www.ruby-forum.com/t/sessions-failing-on-debian-apache2-fast-cgi/93563>\
**Category:** Rails\
**Created:** [April 4, 2006, 8:33pm UTC](https://www.ruby-forum.com/t/sessions-failing-on-debian-apache2-fast-cgi/93563 "2006-04-04T20:33:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![samj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/77aa72/32.png) [@samj](https://www.ruby-forum.com/u/samj)\
**Post date:** [April 4, 2006, 8:33pm UTC](https://www.ruby-forum.com/t/sessions-failing-on-debian-apache2-fast-cgi/93563/1 "2006-04-04T20:33:46Z")

</div>

Hi All,

So I just pushed our rails app to our production server, but I’ve  
encountered a number of problems.

Firstly the fast\_cgi processes seem to be eating up a hell of a lot of  
memory, at times max out our 1gig of RAM. I’ve switched back to cgi for  
the moment, but independently of that sessions seem to be failing  
intermitently.

The session will hold itself stable for a while, so the user can perform  
a few actions, but then the session is expired - at least I can see that  
the session id changes.

There were some ruby\_sess files in /tmp/ along with a lot of what might  
have been cached pages. I wiped the /tmp/ directory and recreated it  
chmod 777, but while the cached page files are being recreated, I now  
don’t see any ruby session files. The session is still active for a few  
page hits, but then expires.

Has anyone had any similar problems?

Many thanks in advance.

CHEERS\> SAM

---

<div class="post-metadata">

**Author:** ![samj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/77aa72/32.png) [@samj](https://www.ruby-forum.com/u/samj)\
**Post date:** [April 4, 2006, 9:07pm UTC](https://www.ruby-forum.com/t/sessions-failing-on-debian-apache2-fast-cgi/93563/2 "2006-04-04T21:07:27Z")

</div>

On Wed, Apr 05, 2006 at 03:32:40AM +0900, Sam J. wrote:  
[…]  
} Firstly the fast\_cgi processes seem to be eating up a hell of a lot of  
} memory, at times max out our 1gig of RAM. I’ve switched back to cgi  
for  
} the moment, but independently of that sessions seem to be failing  
} intermitently.  
[…]  
} Has anyone had any similar problems?

This is a known problem with Apache2 and fast\_cgi/fcgi. Use mod\_fcgid  
instead.

} Many thanks in advance.  
} CHEERS\> SAM  
–Greg
