Vesta CP high CPU usage during backup
Re: Vesta CP high CPU usage during backup
Or you can add to cron a little command and clean sessions automaticly
Code: Select all
find /home/*/tmp -type f -name 'sess_*' -ctime +5 -delete
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: Vesta CP high CPU usage during backup
Be carefull!! If doing this way... make sure to wipe only sessions older than 24hrs or else you may destroy active sessions for logged in users giving them weird errors. Skurudo's cron task already takes care of it and deletes session files 5 days older.skurudo wrote:Or you can add to cron a little command and clean sessions automaticlyCode: Select all
find /home/*/tmp -type f -name 'sess_*' -ctime +5 -delete
Re: Vesta CP high CPU usage during backup
mehargags, yep, ctime need to ajust to current situation on server.. in my opinion - 3 or 5 days it's pretty long for session ;-)