Page 1 of 1

How to add cron in vesta to clear server cache?

Posted: Fri Mar 18, 2016 12:29 pm
by hafeezksa
How I can add cron job in vesta to clear daily server's buffers/cache without interrupting any process or service ?
plus, In other job clear swap cache ?

Re: How to add cron in vesta to clear server cache?

Posted: Fri Apr 01, 2016 7:54 am
by leisegang
you could add it in terminal:

Code: Select all

crontab -l
0 * * *  * sync; echo 3 > /proc/sys/vm/drop_caches
or add it in vesta admin panel.

Re: How to add cron in vesta to clear server cache?

Posted: Mon Apr 04, 2016 2:57 pm
by tjebbeke
I suggest you to not do this!

https://www.kernel.org/doc/Documentation/sysctl/vm.txt (Read section: drop_caches)

http://www.linuxatemyram.com/

Re: How to add cron in vesta to clear server cache?

Posted: Mon Nov 14, 2016 8:35 am
by susan albert
tjebbeke wrote:I suggest you to not do this!
I agree with you because it will definitely create loading issues!
subchorionichemorrhagehealth care tippoikilothermia[/url]hyperthymesia

Re: How to add cron in vesta to clear server cache?

Posted: Mon Nov 14, 2016 11:41 am
by mehargags
you should not do this on daily basis...

Re: How to add cron in vesta to clear server cache?

Posted: Tue Dec 06, 2016 2:01 pm
by skurudo
mehargags wrote:you should not do this on daily basis...
Why? I see some maniacs do this every hour ;-)