Project

General

Profile

Actions

Defect #3441

closed

Too many session files

Added by Brad Schick over 15 years ago. Updated over 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-06-03
Due date:
% Done:

0%

Estimated time:
Resolution:
Duplicate
Affected version:

Description

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

Is duplicate of Redmine - Feature #2628: Set session store to cookie store by defaultClosed2009-01-30

Actions
Actions #1

Updated by Eric Davis over 15 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/.

Actions

Also available in: Atom PDF