1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

clear cached memory is good practice?

Discussion in 'Site & Server Administration' started by jhashan, May 1, 2015.

  1. #1
    I have few Ubuntu server have memory problem and sometime MySQL get down so I decided to clear cached memory using this code

    sync; sudo echo 3 > /proc/sys/vm/drop_caches

    I have added an hourly cron job for running this code but I am confused, is this a good practice for memory issue? I need experts opinion.
     
    Solved! View solution.
    jhashan, May 1, 2015 IP
  2. #2
    I don't know about hourly, but it's not a bad idea to do it once in awhile. Personally, I have a cron job that does it weekly. But it's also on servers with 256GB of RAM, so not exactly tight on memory.
     
    digitalpoint, May 1, 2015 IP
    jhashan likes this.
  3. jhashan

    jhashan Well-Known Member

    Messages:
    246
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    108
    #3
    Thank you Boss, I will change timing to 1 day because my Ram is small.
     
    jhashan, May 2, 2015 IP