Sessions failing on debian apache2 fast_cgi


#1

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


#2

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