• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Memory reporting discrepancy

AFRC

New Pleskian
Plesk is reporting about 80% memory used.
Any idea what's going on? Is there anything to fix this?

top is giving me this:

Captura de ecrã 2015-12-16, às 14.41.07.png

free -m gives this:

Captura de ecrã 2015-12-16, às 14.42.41.png

cat /proc/meminfo gives this:

Captura de ecrã 2015-12-16, às 14.43.22.png

And plesk gives this:

plesk-server-info.png
 
What is output of command:

# ps -eo pmem,pcpu,rss,vsize,args | sort -k 1 -r | more
 
@IgorG Sure.
I've replaced the domain with [--REMOVED--]

Code:
%MEM %CPU   RSS    VSZ COMMAND
 8.5  2.4 719952 6536956 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --log-error=/var/lib/mysql/[--REMOVED--].err --pid-file=[--REMOVED--].pid --socket=/var/lib/mysql/mysql.sock --port=3306
 0.5  0.9 43512 608188 php-fpm: pool [--REMOVED--]
 0.5  0.9 42792 609028 php-fpm: pool [--REMOVED--]
 0.5  0.9 42308 606724 php-fpm: pool [--REMOVED--]
 0.5  0.9 42004 607608 php-fpm: pool [--REMOVED--]
 0.5  0.8 42128 607192 php-fpm: pool [--REMOVED--]
 0.4  0.9 41664 607472 php-fpm: pool [--REMOVED--]
 0.4  0.9 40268 606644 php-fpm: pool [--REMOVED--]
 0.4  0.9 40152 606644 php-fpm: pool [--REMOVED--]
 0.4  0.9 39052 607340 php-fpm: pool [--REMOVED--]
 0.4  0.9 37476 606840 php-fpm: pool [--REMOVED--]
 0.4  0.8 39064 606372 php-fpm: pool [--REMOVED--]
 0.4  0.8 38960 606228 php-fpm: pool [--REMOVED--]
 0.4  0.8 38696 607568 php-fpm: pool [--REMOVED--]
 0.4  0.8 38524 606892 php-fpm: pool [--REMOVED--]
 0.4  0.8 38512 606828 php-fpm: pool [--REMOVED--]
 0.3  1.0 33376 606772 php-fpm: pool [--REMOVED--]
 0.3  0.1 27872 2103692 /usr/bin/newrelic-daemon --agent --pidfile /var/run/newrelic-daemon.pid --logfile /var/log/newrelic/newrelic-daemon.log --port /tmp/.newrelic.sock --tls -no-pidfile
 0.2  0.1 20128 2239732 /usr/sbin/httpd -DFOREGROUND
 0.2  0.1 19232 2239732 /usr/sbin/httpd -DFOREGROUND
 0.2  0.0 21404  67544 /usr/lib/systemd/systemd-journald
 0.2  0.0 17600 2239732 /usr/sbin/httpd -DFOREGROUND
 0.1  0.0  9476 238684 /usr/sbin/rsyslogd -n
 0.1  0.0  8548 406700 php-fpm: master process (/opt/plesk/php/5.6/etc/php-fpm.conf)
 0.1  0.0 15492 2239732 /usr/sbin/httpd -DFOREGROUND
 0.1  0.0 11476 254512 /usr/sbin/httpd -DFOREGROUND
 0.0  0.4  3320 116628 -bash
 0.0  0.0   976  34636 /usr/lib/systemd/systemd-logind
 0.0  0.0   940  26488 /bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
 0.0  0.0   928 126632 sort -k 1 -r
 0.0  0.0   900  82460 /usr/sbin/sshd -D
 0.0  0.0   864 110076 more
 0.0  0.0   744  11888 /usr/libexec/gam_server
 0.0  0.0   664  22716 /usr/sbin/crond -n
 0.0  0.0  5988 417468 /usr/bin/python /usr/bin/fail2ban-server -s /var/run/fail2ban/fail2ban.sock -p /var/run/fail2ban/fail2ban.pid -x -b
 0.0  0.0   572  29224 /usr/sbin/xinetd -stayalive -pidfile /var/run/xinetd.pid
 0.0  0.0  5660 143616 sshd: root@pts/0
 0.0  0.0   468  40856 /usr/lib/systemd/systemd-udevd
 0.0  0.0  4396 252016 /usr/sbin/httpd -DFOREGROUND
 0.0  0.0  4292 253196 /usr/sbin/httpd -DFOREGROUND
 0.0  0.0   412  11688 /bin/sh /usr/bin/mysqld_safe --basedir=/usr
 0.0  0.0  3776 251164 /usr/sbin/nrsysmond -c /etc/newrelic/nrsysmond.cfg -p /var/run/newrelic/nrsysmond.pid
 0.0  0.0   360   6376 /sbin/agetty --noclear tty2
 0.0  0.0   360   6376 /sbin/agetty --noclear --keep-baud console 115200 38400 9600
 0.0  0.0  2648 1135168 /usr/bin/newrelic-daemon --agent --pidfile /var/run/newrelic-daemon.pid --logfile /var/log/newrelic/newrelic-daemon.log --port /tmp/.newrelic.sock --tls
 0.0  0.0   264  16864 /usr/sbin/nrsysmond -c /etc/newrelic/nrsysmond.cfg -p /var/run/newrelic/nrsysmond.pid
 0.0  0.0  2540  55052 sw-cp-server: worker process
 0.0  0.0  2512 205628 init -z
 0.0  0.0  1256 121228 ps -eo pmem,pcpu,rss,vsize,args
 0.0  0.0   124  53604 sw-cp-server: master process /usr/sbin/sw-cp-serverd -c /etc/sw-cp-server/config
 0.0  0.0  1200 364492 sw-engine-fpm: master process (/etc/sw-engine/sw-engine-fpm.conf)
 0.0  0.0     0      0 [kthreadd/151216]
 0.0  0.0     0      0 [khelper/151216]
 
As you can see MySQL is the most gluttonous component.
I would suggest you try to optimize mysql databases and check how it is goes on.
 
@IgorG Thanks again for the feedback.

I understand the mysql is consuming about 1gb of memory, however this is not what im concerned about.

The thing is, plesk (mobile app and website) is showing me about 90% of memory in use, when mysql is consuming about 10% of total RAM.
As i show in the prints in the first post, the top command shows that the memory is available, but plesk shows the opposite.

It's the discrepancy between reports that is worrying me, every time i open the mobile app, i see ~95% memory in used and in reality it is not true.

It seems plesk accounts the buffer/cache memory in the total memory in use?

Also i'm seeing what i think an abnormal swap value:

Actual memory in use: 866MB / 8GB (11%)
Swap: 700.9MB / 2GB (34%)

Thanks.
 
Back
Top