Discover Centmin Mod today
Register Now

Clean all unused data after upgraded

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by HarryPotter, Apr 4, 2015.

  1. HarryPotter

    HarryPotter Member

    41
    0
    6
    Apr 3, 2015
    Ratings:
    +0
    Local Time:
    2:10 PM
    Hi all.

    I just upgraded nginx version from 1.7.9 to 1.7.11 and memory used from 300k to 600k. LOL. very fast. How to remove unused data after upgraded?? Thank you :)

    @eva2000
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,139
    6,778
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,128
    Local Time:
    2:10 PM
    Nginx 1.13.x
    MariaDB 5.5
    Yes centmin.sh menu option 4 to upgrade/downgrade Nginx is nice and fast :)

    What unused data you referring to ? the Nginx 1.7.9 source files ? All source files are at /svr-setup
     
  3. HarryPotter

    HarryPotter Member

    41
    0
    6
    Apr 3, 2015
    Ratings:
    +0
    Local Time:
    2:10 PM
    Yep! Source files. How to remove it?
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,139
    6,778
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,128
    Local Time:
    2:10 PM
    Nginx 1.13.x
    MariaDB 5.5
    find the nginx-1.7.9 folder and files in /svr-setup and just delete them
     
  5. HarryPotter

    HarryPotter Member

    41
    0
    6
    Apr 3, 2015
    Ratings:
    +0
    Local Time:
    2:10 PM
    After deleted. I got 100M free. Hmm. NVM.
    Code:
      total       used       free     shared    buffers     cached
    Mem:       1020400     883772     136628      43100      82032     582632
    
    So high :'(
     
  6. eva2000

    eva2000 Administrator Staff Member

    30,139
    6,778
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,128
    Local Time:
    2:10 PM
    Nginx 1.13.x
    MariaDB 5.5
    oh you mean memory usage not disk usage

    read Help! Linux ate my RAM!

    linux reports free mem and used memory different from windows.. linux uses free memory in cache which is freed when apps need memory for better performance

    use this command to read real free memory
    Code:
    free -m
    for instance here only 635MB is used really while 91+764 is free memory used in buffer/cache ready to be freed whenever apps need it
    Code:
    free -m
                 total       used       free     shared    buffers     cached
    Mem:          1504       1491         13          0         91        764
    -/+ buffers/cache:        635        869
    Swap:         2047          6       2041
     
  7. HarryPotter

    HarryPotter Member

    41
    0
    6
    Apr 3, 2015
    Ratings:
    +0
    Local Time:
    2:10 PM
    Screen Shot 2015-04-04 at 8.44.21 PM.png

    Ok. Just free -m and used 200MB. It is good (I think). BTW. What is Swap in the screen?
     
  8. eva2000

    eva2000 Administrator Staff Member

    30,139
    6,778
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,128
    Local Time:
    2:10 PM
    Nginx 1.13.x
    MariaDB 5.5