Defect #3441

Too many session files

Added by Brad Schick almost 12 years ago. Updated over 11 years ago.

Status:ClosedStart date:2009-06-03
Priority:NormalDue date:
Assignee:-% Done:


Target version:-
Resolution:Duplicate Affected version:


I have a redmine install on Liunx 32bit, Apache2, Thin that is not very busy. The number of files in my redmine/tmp/sessions folder gets 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.

Related issues

Duplicates Redmine - Feature #2628: Set session store to cookie store by default Closed 2009-01-30


#1 Updated by Eric Davis over 11 years ago

  • Status changed from New to Closed
  • Resolution set to Duplicate

The svn trunk version of Redmine uses cookie sessions so these session files will no longer be created (implemented in #2628). For now, you can work around this with a crontab entry. I was using the following command for several months:

find /tmp/ -name "ruby_sess*" -cmin +600 -exec rm \{} \;

That will remove sessions older than 10 hours. You might need to change the find path, all of mine where stored in /tmp/ and you mentioned redmine/tmp/sessions/.

Also available in: Atom PDF