• 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

Extremly use of RAM

C

ChenchoN

Guest
Hi all.

I have a i7 with 8GB RAM and Plesk 9.3

I noticed that i use swap memory sometimes; then i see what happens in the server to use swap memory.

In last month, memory usage is going up: 3 GB, 4 GB, 5 GB, 7 GB, ...

To see who is the ram eater i do

Code:
ps aux | awk '{print $4"\t"$11}' | sort | uniq -c | awk '{print $2" "$1" "$3}' | sort -nr

Code:
%MEM 1 COMMAND
0.7 1 drwebd.real
0.7 13 /usr/sbin/httpd
0.6 4 /usr/sbin/httpd
0.6 16 drwebd.real
0.5 2 spamd
0.4 3 /usr/sbin/httpd
0.4 1 /usr/libexec/mysqld
0.3 1 /usr/bin/spamd
0.2 1 /usr/sbin/httpd
0.1 5 /usr/bin/python
0.1 3 /usr/bin/sw-engine-cgi
0.1 1 /usr/sbin/postgrey
0.1 1 /usr/bin/sw-engine
0.1 1 /usr/bin/perl
0.1 1 postgres:
0.1 1 lfd
0.0 9 /usr/bin/sw-engine-cgi
0.0 8 sshd:
0.0 8 [glock_workqueue]
0.0 8 [delete_workqueu]
0.0 6 /sbin/mingetty
0.0 4 /usr/sbin/courierlogger
0.0 4 /usr/lib/courier-imap/couriertcpd
0.0 3 postgres:
0.0 2 spawn
0.0 2 sort
0.0 2 [pdflush]
0.0 2 [kslowd]
0.0 2 [kjournald]
0.0 2 -bash
0.0 2 awk
0.0 24 /usr/bin/imapd
0.0 24 /usr/bin/couriertls
0.0 1 xinetd
0.0 1 [xfs_mru_cache]
0.0 1 [xfslogd/7]
0.0 1 [xfslogd/6]
0.0 1 [xfslogd/5]
0.0 1 [xfslogd/4]
0.0 1 [xfslogd/3]
0.0 1 [xfslogd/2]
0.0 1 [xfslogd/1]
0.0 1 [xfslogd/0]
0.0 1 [xfsdatad/7]
0.0 1 [xfsdatad/6]
0.0 1 [xfsdatad/5]
0.0 1 [xfsdatad/4]
0.0 1 [xfsdatad/3]
0.0 1 [xfsdatad/2]
0.0 1 [xfsdatad/1]
0.0 1 [xfsdatad/0]
0.0 1 [xfsconvertd/7]
0.0 1 [xfsconvertd/6]
0.0 1 [xfsconvertd/5]
0.0 1 [xfsconvertd/4]
0.0 1 [xfsconvertd/3]
0.0 1 [xfsconvertd/2]
0.0 1 [xfsconvertd/1]
0.0 1 [xfsconvertd/0]
0.0 1 /usr/sbin/sw-cp-serverd
0.0 1 /usr/sbin/sshd
0.0 1 /usr/sbin/smartd
0.0 1 /usr/sbin/named
0.0 1 /usr/sbin/httpd
0.0 1 /usr/local/psa/admin/bin/modules/watchdog/monit
0.0 1 /usr/libexec/postfix/master
0.0 1 /usr/libexec/gam_server
0.0 1 /usr/bin/postmaster
0.0 1 [user_dlm]
0.0 1 [usbhid_resumer]
0.0 1 uniq
0.0 1 tlsmgr
0.0 1 syslogd
0.0 1 su
0.0 1 [scsi_eh_3]
0.0 1 [scsi_eh_2]
0.0 1 [scsi_eh_1]
0.0 1 [scsi_eh_0]
0.0 1 scache
0.0 1 /sbin/udevd
0.0 1 [rpciod/7]
0.0 1 [rpciod/6]
0.0 1 [rpciod/5]
0.0 1 [rpciod/4]
0.0 1 [rpciod/3]
0.0 1 [rpciod/2]
0.0 1 [rpciod/1]
0.0 1 [rpciod/0]
0.0 1 qmgr
0.0 1 ps
0.0 1 proftpd:
0.0 1 pickup
0.0 1 [ocfs2_wq]
0.0 1 [o2quot/7]
0.0 1 [o2quot/6]
0.0 1 [o2quot/5]
0.0 1 [o2quot/4]
0.0 1 [o2quot/3]
0.0 1 [o2quot/2]
0.0 1 [o2quot/1]
0.0 1 [o2quot/0]
0.0 1 [nfsiod]
0.0 1 [mtdblockd]
0.0 1 [migration/7]
0.0 1 [migration/6]
0.0 1 [migration/5]
0.0 1 [migration/4]
0.0 1 [migration/3]
0.0 1 [migration/2]
0.0 1 [migration/1]
0.0 1 [migration/0]
0.0 1 [md2_raid1]
0.0 1 [md1_raid1]
0.0 1 [kthreadd]
0.0 1 [kswapd0]
0.0 1 [ksuspend_usbd]
0.0 1 [kstriped]
0.0 1 [ksoftirqd/7]
0.0 1 [ksoftirqd/6]
0.0 1 [ksoftirqd/5]
0.0 1 [ksoftirqd/4]
0.0 1 [ksoftirqd/3]
0.0 1 [ksoftirqd/2]
0.0 1 [ksoftirqd/1]
0.0 1 [ksoftirqd/0]
0.0 1 [ksnapd]
0.0 1 [kseriod]
0.0 1 [kpsmoused]
0.0 1 [kondemand/7]
0.0 1 [kondemand/6]
0.0 1 [kondemand/5]
0.0 1 [kondemand/4]
0.0 1 [kondemand/3]
0.0 1 [kondemand/2]
0.0 1 [kondemand/1]
0.0 1 [kondemand/0]
0.0 1 [kmpath_handlerd]
0.0 1 [kmpathd/7]
0.0 1 [kmpathd/6]
0.0 1 [kmpathd/5]
0.0 1 [kmpathd/4]
0.0 1 [kmpathd/3]
0.0 1 [kmpathd/2]
0.0 1 [kmpathd/1]
0.0 1 [kmpathd/0]
0.0 1 klogd
0.0 1 [kintegrityd/7]
0.0 1 [kintegrityd/6]
0.0 1 [kintegrityd/5]
0.0 1 [kintegrityd/4]
0.0 1 [kintegrityd/3]
0.0 1 [kintegrityd/2]
0.0 1 [kintegrityd/1]
0.0 1 [kintegrityd/0]
0.0 1 [khubd]
0.0 1 [khelper]
0.0 1 [kdelayd/7]
0.0 1 [kdelayd/6]
0.0 1 [kdelayd/5]
0.0 1 [kdelayd/4]
0.0 1 [kdelayd/3]
0.0 1 [kdelayd/2]
0.0 1 [kdelayd/1]
0.0 1 [kdelayd/0]
0.0 1 [kconservative/7]
0.0 1 [kconservative/6]
0.0 1 [kconservative/5]
0.0 1 [kconservative/4]
0.0 1 [kconservative/3]
0.0 1 [kconservative/2]
0.0 1 [kconservative/1]
0.0 1 [kconservative/0]
0.0 1 [kblockd/7]
0.0 1 [kblockd/6]
0.0 1 [kblockd/5]
0.0 1 [kblockd/4]
0.0 1 [kblockd/3]
0.0 1 [kblockd/2]
0.0 1 [kblockd/1]
0.0 1 [kblockd/0]
0.0 1 [kacpi_notify]
0.0 1 [kacpi_hotplug]
0.0 1 [kacpid]
0.0 1 [iscsi_eh]
0.0 1 init
0.0 1 hald-runner
0.0 1 hald
0.0 1 [fc_rport_eq]
0.0 1 [fcoethread/7]
0.0 1 [fcoethread/6]
0.0 1 [fcoethread/5]
0.0 1 [fcoethread/4]
0.0 1 [fcoethread/3]
0.0 1 [fcoethread/2]
0.0 1 [fcoethread/1]
0.0 1 [fcoethread/0]
0.0 1 [events/7]
0.0 1 [events/6]
0.0 1 [events/5]
0.0 1 [events/4]
0.0 1 [events/3]
0.0 1 [events/2]
0.0 1 [events/1]
0.0 1 [events/0]
0.0 1 [edac-poller]
0.0 1 dbus-daemon
0.0 1 [crypto/7]
0.0 1 [crypto/6]
0.0 1 [crypto/5]
0.0 1 [crypto/4]
0.0 1 [crypto/3]
0.0 1 [crypto/2]
0.0 1 [crypto/1]
0.0 1 [crypto/0]
0.0 1 crond
0.0 1 [cpuset]
0.0 1 [cifsoplockd]
0.0 1 /bin/sh
0.0 1 [ata_aux]
0.0 1 [ata/7]
0.0 1 [ata/6]
0.0 1 [ata/5]
0.0 1 [ata/4]
0.0 1 [ata/3]
0.0 1 [ata/2]
0.0 1 [ata/1]
0.0 1 [ata/0]
0.0 1 [async/mgr]
0.0 1 [aio/7]
0.0 1 [aio/6]
0.0 1 [aio/5]
0.0 1 [aio/4]
0.0 1 [aio/3]
0.0 1 [aio/2]
0.0 1 [aio/1]
0.0 1 [aio/0]
0.0 101 /usr/lib/plesk-9.0/postfix-queue

I stop drweb and spamassassin, but memory stills near 8 GB

At Plesk side, it tell me that i use 6.6 GB of 7.9 GB, but from console y see it's full.

Any tip?
 
Do you have any memory related errors and messages in /var/log/sw-cp-server/error_log, /var/log/messages ?
 
High Memory Use on 9.2.3 crashing server

I'm getting 90-100% ram usage.

Logs from last hour /var/log/sw-cp-server/error_log

2010-04-13 14:28:38: (connections.c.299) SSL: 1 error:140780E5:SSL routines:SSL23_READ:ssl handshake failure
2010-04-13 14:28:41: (connections.c.299) SSL: 1 error:140780E5:SSL routines:SSL23_READ:ssl handshake failure
2010-04-13 14:28:45: (connections.c.299) SSL: 1 error:140780E5:SSL routines:SSL23_READ:ssl handshake failure
2010-04-13 14:29:41: (connections.c.299) SSL: 1 error:140780E5:SSL routines:SSL23_READ:ssl handshake failure
2010-04-13 14:29:41: (connections.c.299) SSL: 1 error:140780E5:SSL routines:SSL23_READ:ssl handshake failure
2010-04-13 14:29:54: (connections.c.299) SSL: 1 error:140780E5:SSL routines:SSL23_READ:ssl handshake failure
2010-04-13 14:37:23: (connections.c.299) SSL: 1 error:140780E5:SSL routines:SSL23_READ:ssl handshake failure
2010-04-13 15:12:27: (connections.c.299) SSL: 1 error:140780E5:SSL routines:SSL23_READ:ssl handshake failure
2010-04-13 15:12:27: (connections.c.299) SSL: 1 error:140780E5:SSL routines:SSL23_READ:ssl handshake failure
2010-04-13 15:12:28: (connections.c.299) SSL: 1 error:140780E5:SSL routines:SSL23_READ:ssl handshake failure
2010-04-13 15:12:32: (connections.c.299) SSL: 1 error:140780E5:SSL routines:SSL23_READ:ssl handshake failure
2010-04-13 15:12:32: (connections.c.299) SSL: 1 error:140780E5:SSL routines:SSL23_READ:ssl handshake failure
2010-04-13 15:12:32: (connections.c.299) SSL: 1 error:140780E5:SSL routines:SSL23_READ:ssl handshake failure
all children busy, launch additional (total 3, limit 30)
2010-04-13 15:28:25: (connections.c.299) SSL: 1 error:140780E5:SSL routines:SSL23_READ:ssl handshake failure
2010-04-13 15:28:26: (connections.c.299) SSL: 1 error:140780E5:SSL routines:SSL23_READ:ssl handshake failure
2010-04-13 15:28:26: (connections.c.299) SSL: 1 error:140780E5:SSL routines:SSL23_READ:ssl handshake failure
2010-04-13 15:28:30: (connections.c.299) SSL: 1 error:140780E5:SSL routines:SSL23_READ:ssl handshake failure
2010-04-13 15:28:31: (connections.c.299) SSL: 1 error:140780E5:SSL routines:SSL23_READ:ssl handshake failure
2010-04-13 15:28:31: (connections.c.299) SSL: 1 error:140780E5:SSL routines:SSL23_READ:ssl handshake failure
all children busy, launch additional (total 3, limit 30)
 
probably no problem?!

hi folks,

guess that's not a problem at all. Linux uses up 100% of RAM as long as it's not allocated yet. So even if you don't to anything with your server the RAM will be "used up" over time. But it will be freed immediately as soon as RAM is "really" needed. You only have to worry when the machine really starts to slow down.

Just type in "top" and then "m" to sort by memory usage descending and you'll see if there are real memory-users there
 
Back
Top