Forum: Ruby on Rails sessions failing on debian apache2 fast_cgi

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Cb33b32bd5d675db7be148542976e510?d=identicon&s=25 Sam Joseph (Guest)
on 2006-04-04 20:33
(Received via mailing list)
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
675475d0b65710be6d992eb5eb2c61c2?d=identicon&s=25 Gregory Seidman (Guest)
on 2006-04-04 21:07
(Received via mailing list)
On Wed, Apr 05, 2006 at 03:32:40AM +0900, Sam Joseph 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
This topic is locked and can not be replied to.