Want to subscribe to topics you're interested in?
Become a Member

Memory usage 100% on an idling centminmod install

Discussion in 'Virtual Private Server (VPS) hosting' started by harryneopotter, Jan 18, 2016.

  1. harryneopotter

    harryneopotter Member

    70
    3
    8
    Aug 16, 2015
    Ratings:
    +8
    Local Time:
    12:03 PM
    Nginx 1.9.3
    MariaDB 10.0
    Hi,

    I bought a 2 GB RAM OVZ VPS yesterday and install centminmod on it. Here is what I did afterwards :
    1. Using the menu option 22, installed wordpress in it.
    2. moved all the wordpress files to a folder and put the backup of a wordpress site and unzipped it.

    Didnt setup the site yet, didnt assign any domain yet. Still the memory usage is 100%. Not the usual "linuxatemyram" type, but 100% used memory (according to nixstats, nodequery and the VPS control panel). What can be the cause ?

    SSH port was changed, password login is disabled (using key), if it helps.

     
  2. eva2000

    eva2000 Administrator Staff Member

    55,417
    12,256
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,837
    Local Time:
    4:33 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    free and top commands etc or install my mysqlmymonlite.sh addon at mysqlmymonlite.sh Addon | Centmin Mod Community and run it

    centos 7 or 6 ? openvz reports memory usage different from other virtualization types like kvm or xen as virtual memory size is counted as used memory see Memory usage seems too high inside a VPS - Knowledgebase - IntoVPS

    centmin mod already does auto stack size optimisation for services it source compiles, like nginx, php-fpm, memcached where openvz virtualisation is detected on initial installs
     
  3. harryneopotter

    harryneopotter Member

    70
    3
    8
    Aug 16, 2015
    Ratings:
    +8
    Local Time:
    12:03 PM
    Nginx 1.9.3
    MariaDB 10.0
    Thanks for the reply.

    Here is free -m
    top :
    Its centos 6 (64 bit). Using the same config on a few other VPS, without any issue. Not sure what went wrong here.
     
  4. eva2000

    eva2000 Administrator Staff Member

    55,417
    12,256
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,837
    Local Time:
    4:33 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  5. harryneopotter

    harryneopotter Member

    70
    3
    8
    Aug 16, 2015
    Ratings:
    +8
    Local Time:
    12:03 PM
    Nginx 1.9.3
    MariaDB 10.0
  6. eva2000

    eva2000 Administrator Staff Member

    55,417
    12,256
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,837
    Local Time:
    4:33 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    VIRT memory is reported as used memory in OpenVZ that's why

    did you edit any memcached, nginx, mariadb mysql and php-fpm settings after install ?
     
  7. harryneopotter

    harryneopotter Member

    70
    3
    8
    Aug 16, 2015
    Ratings:
    +8
    Local Time:
    12:03 PM
    Nginx 1.9.3
    MariaDB 10.0
    Nope. didnt do anything else. just centmin and option 22. touched nothing.
    I have other OVZ VPS (512 to 1 GB memory) running centminmod, never faced this issue anywhere. I guess I should try reinstall ?
     
  8. eva2000

    eva2000 Administrator Staff Member

    55,417
    12,256
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,837
    Local Time:
    4:33 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    nothing wrong with VPS it's just how OpenVZ reports memory usage to include VIRT virtual memory. But centmin mod auto configures settings and php-fpm memory allocations and nginx work processes based on installed memory detected, so different memory sized openvz vpses may have different memory footprints.

    You can tune and reduce memory usage in mysql, nginx and php-fpm and zend opcache memory allocation settings files Centmin Mod Configuration Files - CentminMod.com LEMP Nginx web stack for CentOS For nginx see FAQ items 25, 31 & 36 to reduce unneeded nginx modules too etc. The rest is up to you though :)