The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cent os memory usage high

Discussion in 'General Discussion' started by uk01, Aug 19, 2014.

  1. uk01

    uk01 Well-Known Member

    Joined:
    Dec 31, 2009
    Messages:
    50
    Likes Received:
    1
    Trophy Points:
    8
    Hi, I've just set up another vps on ESXi. This uses cent os 6.5 and was set up using the cpanel iso download.
    It's currently using trial license and all is well.

    However, the server info reports
    0.2% cpu usage (no accounts at the moment)
    86% memory usage - 2Gb installed (and a warning)

    86%! Our other vps's running a large amount of busy websites, Wordpress etc use much less, usually around 40-50%.
    The only difference is they use Cent os 5.1
    Does cent os 6.5 use all the memory for cache even if there are no accounts?

    My concern is that ESxi usually shares memory with other vps's and now 1 empty vps is hogging 2GB for nothing. Unless I missing something?
     
  2. uk01

    uk01 Well-Known Member

    Joined:
    Dec 31, 2009
    Messages:
    50
    Likes Received:
    1
    Trophy Points:
    8
    Thanks, I've just had a read of that and understand it. However, it seems I'm seeing the opposite because he has 22% of memory used in the system information, whereas I'm seeing 85% with nothing on the server.


    System information
    Server load 0.10 (1 CPU)
    Memory Used 84.88% (1,631,756 of 1,922,424)
    Swap Used 0.58% (23,932 of 4,128,760)

    Current Memory Usage
    total used free shared buffers cached
    Mem: 1922424 1833120 89304 0 17208 187092
    -/+ buffers/cache: 1628820 293604
    Swap: 4128760 23932 4104828
    Total: 6051184 1857052 4194132


    I'd appreciate if you could clarify the above figures?
    Also is it just Centos6 which uses caching, is that why our other servers don't use this much ram?

    Thanks
     
  3. triantech

    triantech Well-Known Member

    Joined:
    Jul 1, 2014
    Messages:
    145
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Kochi, India, India
    cPanel Access Level:
    Root Administrator
    Hello,

    It would be good if you check what actually are the running process.

    Run # top -c ( and press shift+m) - to find the memory usage along with the running processes.
     
  4. uk01

    uk01 Well-Known Member

    Joined:
    Dec 31, 2009
    Messages:
    50
    Likes Received:
    1
    Trophy Points:
    8
    thanks triantech, here are the results of that, minimal memory use by processes but high amount used in the stats


    Code:
    top - 12:58:36 up 1 day, 11:29,  1 user,  load average: 0.00, 0.05, 0.01
    Tasks: 124 total,   1 running, 123 sleeping,   0 stopped,   0 zombie
    Cpu(s):  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
    Mem:   1922424k total,  1812584k used,   109840k free,    17712k buffers
    Swap:  4128760k total,    69832k used,  4058928k free,   237708k cached
    
      PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                        
     1663 mysql     20   0  863m  44m 3768 S  0.0  2.4   1:00.07 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugi
    23344 root      20   0  162m  35m 2040 S  0.0  1.9   0:03.66 spamd child                                                     
     1731 root      20   0  161m  19m 1852 S  0.0  1.1   0:24.43 /usr/local/cpanel/3rdparty/perl/514/bin/spamd -d --allowed-ips=1
     1892 root      20   0  112m  19m 1204 S  0.0  1.0   0:13.31 cpsrvd (SSL) - waiting for c --llu=1408494599 --listen=3,4,5,6,7
     1916 root      20   0  103m  15m  668 S  0.0  0.9   0:03.08 cpdavd - accepting connections on 2077 and 2078                 
     1984 root      20   0 83636  13m 1224 S  0.0  0.7   0:25.66 tailwatchd                                                      
    26507 root      20   0  150m  13m 1384 S  0.0  0.7   0:00.51 lfd - sleeping                                                  
     1949 root      20   0 38844 6936 1412 S  0.0  0.4   0:04.53 queueprocd - wait to process a task                             
     1996 root      38  18 31020 4896  764 S  0.0  0.3   0:01.07 cpanellogd - sleeping for logs                                  
    26623 root      20   0  100m 3984 2992 S  0.0  0.2   0:00.19 sshd: root@pts/0                                                
    26523 root      20   0  100m 3936 2964 S  0.0  0.2   0:00.27 sshd: root@notty                                                
     1877 root      20   0 34936 2940 1348 S  0.0  0.2   0:01.03 cPhulkd - processor                                             
    16359 nobody    20   0 73728 2592 1872 S  0.0  0.1   0:00.10 /usr/local/apache/bin/httpd -k start -DSSL                      
    16362 nobody    20   0 73728 2588 1872 S  0.0  0.1   0:00.05 /usr/local/apache/bin/httpd -k start -DSSL                      
    16374 nobody    20   0 73728 2584 1872 S  0.0  0.1   0:00.04 /usr/local/apache/bin/httpd -k start -DSSL                      
    16361 nobody    20   0 73728 2580 1872 S  0.0  0.1   0:00.06 /usr/local/apache/bin/httpd -k start -DSSL                      
    16367 nobody    20   0 73728 2576 1872 S  0.0  0.1   0:00.05 /usr/local/apache/bin/httpd -k start -DSSL                      
    16370 nobody    20   0 73728 2576 1872 S  0.0  0.1   0:00.07 /usr/local/apache/bin/httpd -k start -DSSL                      
    16372 nobody    20   0 73728 2576 1872 S  0.0  0.1   0:00.05 /usr/local/apache/bin/httpd -k start -DSSL                      
    16368 nobody    20   0 73728 2572 1872 S  0.0  0.1   0:00.04 /usr/local/apache/bin/httpd -k start -DSSL                      
    16369 nobody    20   0 73728 2572 1872 S  0.0  0.1   0:00.04 /usr/local/apache/bin/httpd -k start -DSSL                      
    16371 nobody    20   0 73728 2572 1872 S  0.0  0.1   0:00.05 /usr/local/apache/bin/httpd -k start -DSSL                      
    26542 root      20   0 57688 2212 1596 S  0.0  0.1   0:00.03 /usr/libexec/openssh/sftp-server                                
     2058 root      18  -2 12312 2044  304 S  0.0  0.1   0:00.00 /sbin/udevd -d                                                  
     2057 root      18  -2 12312 1960  304 S  0.0  0.1   0:00.01 /sbin/udevd -d                                                  
     1801 root      20   0 79716 1896 1892 S  0.0  0.1   0:00.17 /usr/local/cpanel/3rdparty/bin/perl /usr/local/cpanel/bin/leechp
    26645 root      20   0  105m 1680 1360 S  0.0  0.1   0:00.03 /bin/bash                                                       
     1708 dovenull  20   0 42368 1608 1336 S  0.0  0.1   0:00.69 dovecot/pop3-login                                              
     1703 dovenull  20   0 42392 1552 1320 S  0.0  0.1   0:00.13 dovecot/pop3-login                                              
     1453 haldaemo  20   0 37952 1504  928 S  0.0  0.1   0:01.31 hald                                                            
     1710 root      20   0 16432 1444  872 S  0.0  0.1   0:00.25 dovecot/config                                                  
     1772 root      20   0 73592 1320  872 S  0.0  0.1   0:06.27 /usr/local/apache/bin/httpd -k start -DSSL                      
     1196 root      20   0  243m 1260  768 S  0.0  0.1   0:03.46 /sbin/rsyslogd -i /var/run/syslogd.pid -c 5                     
    26734 root      20   0 15036 1244  940 R  0.0  0.1   0:00.17 top -c                                                          
     1525 ntp       20   0 30720 1164  932 S  0.0  0.1   0:01.41 ntpd -u ntp:ntp -p /var/run/ntpd.pid -g                         
     1704 dovenull  20   0 42380 1160  988 S  0.0  0.1   0:00.36 dovecot/imap-login                                              
     1715 dovecot   20   0 29464 1152  960 S  0.0  0.1   0:01.46 dovecot/auth                                                    
        1 root      20   0 19356 1072  844 S  0.0  0.1   0:07.67 /sbin/init                                                      
     1697 root      20   0 19612  840  692 S  0.0  0.0   0:01.17 /usr/sbin/dovecot                                               
     1706 root      20   0 13444  824  660 S  0.0  0.0   0:00.41 dovecot/log                                                     
     1789 root      20   0  114m  808  652 S  0.0  0.0   0:05.35 crond                                                           
     1717 mailnull  20   0 70100  732  600 S  0.0  0.0   0:01.13 /usr/sbin/exim -bd -q1h                                         
     1705 dovecot   20   0 13316  724  624 S  0.0  0.0   0:00.08 dovecot/anvil                                                   
     1428 dbus      20   0 31776  668  464 S  0.0  0.0   0:00.49 dbus-daemon --system                                            
     1147 root      16  -4 93176  660  508 S  0.0  0.0   0:00.86 auditd                                                          
     1536 root      20   0  105m  656  648 S  0.0  0.0   0:00.04 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file
     1500 haldaemo  20   0 17936  648  644 S  0.0  0.0   0:00.00 hald-addon-acpi: listening on acpid socket /var/run/acpid.socket
     1709 dovenull  20   0 42236  640  636 S  0.0  0.0   0:00.00 dovecot/imap-login                                              
     1454 root      20   0 20328  632  628 S  0.0  0.0   0:00.01 hald-runner                                                     
     1761 root      20   0  105m  632  560 S  0.0  0.0   0:02.18 abrt-dump-oops -d /var/spool/abrt -rwx /var/log/messages        
     1753 root      20   0  107m  604  600 S  0.0  0.0   0:00.00 /usr/sbin/abrtd                                                 
     1486 root      20   0 22448  576  572 S  0.0  0.0   0:00.00 hald-addon-input: Listening on /dev/input/event2 /dev/input/even
     1781 root      20   0  133m  560  556 S  0.0  0.0   0:00.00 /usr/sbin/pure-authd -s /var/run/ftpd.sock -r /usr/local/cpanel/
     1779 root      20   0  135m  556  468 S  0.0  0.0   0:00.30 pure-ftpd (SERVER)                                              
     1517 root      20   0 66616  532  428 S  0.0  0.0   0:00.14 /usr/sbin/sshd                                                  
     2050 root      20   0  4064  496  424 S  0.0  0.0   0:00.00 /sbin/mingetty /dev/tty1                                        
     2052 root      20   0  4064  496  424 S  0.0  0.0   0:00.00 /sbin/mingetty /dev/tty2                                        
     2061 root      20   0  4064  496  424 S  0.0  0.0   0:00.00 /sbin/mingetty /dev/tty5                                        
     2063 root      20   0  4064  496  424 S  0.0  0.0   0:00.00 /sbin/mingetty /dev/tty6                                        
     2054 root      20   0  4064  492  424 S  0.0  0.0   0:00.00 /sbin/mingetty /dev/tty3                                        
     2059 root      20   0  4064  492  424 S  0.0  0.0   0:00.00 /sbin/mingetty /dev/tty4                                        
     1808 root      20   0 21540  452  360 S  0.0  0.0   0:00.13 /usr/sbin/atd                                                   
     1385 root      20   0 13584  444  376 S  0.0  0.0   0:08.62 lldpad -d                                                       
     1444 root      20   0  4080  432  428 S  0.0  0.0   0:00.01 /usr/sbin/acpid                                                 
      438 root      16  -4 11392  372  248 S  0.0  0.0   0:00.41 /sbin/udevd -d                                                  
     1416 root      20   0  8364  304  276 S  0.0  0.0   0:01.91 /usr/sbin/fcoemon --syslog                                      
        2 root      20   0     0    0    0 S  0.0  0.0   0:00.07 [kthreadd]                                                      
        3 root      RT   0     0    0    0 S  0.0  0.0   0:00.00 [migration/0]                                                   
        4 root      20   0     0    0    0 S  0.0  0.0   0:00.41 [ksoftirqd/0]
     
  5. triantech

    triantech Well-Known Member

    Joined:
    Jul 1, 2014
    Messages:
    145
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Kochi, India, India
    cPanel Access Level:
    Root Administrator
    Hello,

    Very weird it looks :(

    Just curious to know, what version of MySQL are you running on ?
     
  6. uk01

    uk01 Well-Known Member

    Joined:
    Dec 31, 2009
    Messages:
    50
    Likes Received:
    1
    Trophy Points:
    8
    Currently installed: 5.5.37
    Centos and cpanel installed from the cpanel download

    It is trial at the moment and shows accelerated version of cpanel but that's just an image issue with the logo, it changes to vps optimised when licensed, still the same install.

    Odd as when we restart the server it's on a low memory usage then goes up and up quickly and sits at 85% so it does look like caching in cent os6 but from the figures it's odd. It's also not good for ESXi as I'm not sure if it can still reclaim unused memory for other vps's (usually they don't need the 2GB especially with no accounts!)
     
  7. uk01

    uk01 Well-Known Member

    Joined:
    Dec 31, 2009
    Messages:
    50
    Likes Received:
    1
    Trophy Points:
    8
    Just to update this thread after liasing with Cpanel support.

    We couldn't find anything wrong and after setting up a test server Cpanel saw something similar but confirmed it was not Cpanel related.

    However after a couple of restarts the issue seemed to resolve. The only setting I changed was to disable the vmwaretools CD installer loading on the vm in esxi/vsphere (perhaps a driver for this caused high memory usage, I don't know.) I also ran yum update.

    Memory dropped to around 20% and remained consistent, so I then went ahead and did the vmware tools install.
    Everything is still fine.

    One thing which did come out of this is that Cpanel recommend that SELinux is turned off
    https://documentation.cpanel.net/display/1144Docs/Installation+Guide+-+Disable+SELinux
    This defaults on with the Cpanel/CentOS image install. Brian at Cpanel will be flagging this up to get it changed.

    In the meantime a note to anyone to check SELinux is turned off by using command sestatus by ssh.

    Thanks both of you for your contribution to this discussion, very much appreciated
     
    StevenM. likes this.
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page