Project

General

Profile

Session overload

Added by Brad Schick over 15 years ago

This may be a rails issue, but I've the number of files in my redmine/tmp/sessions folder get huge, over 125,000 at one point. I occasionally delete files that are older than say 30 days, but that is a hassle. I could create a cron job but this just seems like a scalability design problem.

Anyone else hit this?


Replies (3)

RE: Session overload - Added by Brad Schick over 15 years ago

Do no reply mean no one else has seen this?

RE: Session overload - Added by Joe Clarke over 15 years ago

You will not have this issue once version 0.9 is released since it uses Rails cookie based session store instead of a file based session store by default.

You can also use cookie based sessions in version 0.8, edit your environment.rb

Comment out this line:
#config.action_controller.session_store = :PStore

And add this (change the secret variable to a random string of at least 30 characters):
config.action_controller.session = {
:session_key => '_redmine_session',
:secret => 'HIME4mJVLWygXtDIvrpZHIME4mJVLWygXtDIvrpZHIME4mJVLWygXtDIvrpZHIME4mJVLWygXtDIvrpZHIME4mJVLWygXtDIvrpZ'
}

RE: Session overload - Added by Dan Colish over 15 years ago

I've been getting a lot of open file descriptor errors recently. I wonder if this is related? I am trying the fix listed here and will report back.

    (1-3/3)