Defect #3441
closedToo many session files
0%
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
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/
.