High memory usage after install on Centos 7

Discussion in 'Installation/Configuration' started by Luke Roughley, Feb 3, 2016.

  1. Luke Roughley

    Luke Roughley New Member

    I have installed ISPConfig on a new install of Centos 7 on a cloud server. After setup, the RAM usage averages out at ~2829MB ram usage, which is way too much looking at what other people are reporting as optimised setups.

    I used htop to see what is using so much RAM and there are many instances of mysqld running with all the same ram usage, this pattern repeats itself with several other applications including named, python, rsyslogd, httpd.

    Has anyone ever seen this before? Killing any of the running processes causes more to automatically get started.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The ram usage of mysql depends on the load that your server handles as mysql starts more instances when necessary. When the server is idle then a full setup uses about 700MB ram.
     
  3. Luke Roughley

    Luke Roughley New Member

    I only have the recommended installation + 1 test website that is only accessed by me and one other person (this also has been used on other servers without issue).
    Even when disabling this website I am still just under 3GB memory usage.

    See screenshot of htop below so you can see what I mean, clamd for example is using a huge amount of memory.
    htop-output.png
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    That's no problem, please see here:

    http://www.linuxatemyram.com/

    Linux has to use all ram for caching, this does not mean that your server is overloaded. Only if you see high swap memory usage then your server has a ram problem.
     
  5. Luke Roughley

    Luke Roughley New Member

    That's fantastic news, thanks!

    I am still unsure how much RAM I have free as the output of 'free' on my server is slightly different so I am still not sure how much memory is free exactly. It does not have the "-/+ buffers/cache:" row:

    free
    total used free shared buff/cache available
    Mem: 3186392 992444 1472376 52316 721572 2084488
    Swap: 2096124 96 2096028


    Reading further http://www.linuxatemyram.com/ shown how to drop your caches for test:

    free -m
    total used free shared buff/cache available
    Mem: 3111 986 1419 51 705 2018
    Swap: 2046 0 2046

    echo 3 | sudo tee /proc/sys/vm/drop_caches
    3
    free -m
    total used free shared buff/cache available
    Mem: 3111 985 1967 51 158 2018
    Swap: 2046 0 2046


    So I am not certain but I think the amount I have free is ~2GB? I should have 4GB ram total.
     
  6. lnxgs

    lnxgs Member

    Here you have 3GB RAM not 4.
    Put the output of these 4 commands:
    uname -a
    rpm -qa kernel\*
    cat /proc/meminfo
    df --si

    Regards,
    L.
     

Share This Page