rodolfochka

Active Member
Feb 1, 2004
35
0
156
Mexico City
Hi there!

I've seen in WHM that my server is using too much memory:

Memory Used 82.8 % and light is in yellow

I watched in the CPU/Memory/MySQL Usage
and in the table under %MEM the highest is MySQL with 3 and all the other under 2
and this also:
Top Process %CPU 34.0 /usr/bin/spamd -d
Top Process %CPU 14.0 /usr/bin/spamd -d


and under SSH in top command:

7:43pm up 99 days, 16:40, 1 user, load average: 0.02, 0.06, 0.07
63 processes: 62 sleeping, 1 running, 0 zombie, 0 stopped
CPU states: 0.0% user, 0.2% system, 0.0% nice, 99.7% idle
Mem: 1023580K av, 997368K used, 26212K free, 0K shrd, 46484K buff
Swap: 2040244K av, 509172K used, 1531072K free 99576K cached

and all process in memory are under 1!!

Do anybody outhere can help me with this???

I have WHM 9.7.2 cPanel 9.7.7-R15
RedHat 7.3 i686 - WHM X v3.1.0

Thank you in advance!!!

Rodolfochka
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,465
30
473
Go on, have a guess
You've certainly seem to have a problem there.

When you are in top hit M to sort by memory usage so that you can see which processes are using it all up.
 

rodolfochka

Active Member
Feb 1, 2004
35
0
156
Mexico City
only says this:

10:31pm up 22:42, 1 user, load average: 0.12, 0.05, 0.01
57 processes: 56 sleeping, 1 running, 0 zombie, 0 stopped
CPU states: 0.2% user, 0.0% system, 0.0% nice, 99.7% idle
Mem: 1023580K av, 986680K used, 36900K free, 0K shrd, 72492K buff
Swap: 2040244K av, 528084K used, 1512160K free 113176K cached

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
1012 root 14 0 1772 1736 1420 S 0.1 0.1 0:00 sshd
1 root 8 0 472 432 420 S 0.0 0.0 0:00 init
22714 root 9 0 520 480 444 S 0.0 0.0 0:00 syslogd
22724 nobody 9 0 1172 764 680 S 0.0 0.0 0:00 proftpd
22734 root 9 0 812 700 688 S 0.0 0.0 0:00 sshd
22747 root 9 0 780 688 648 S 0.0 0.0 0:00 xinetd
22857 root 9 0 3188 2948 2888 S 0.0 0.2 0:00 httpd
22939 root 0 0 516 472 432 S 0.0 0.0 0:00 crond
22950 root 9 0 1032 856 856 S 0.0 0.0 0:00 mysqld_safe
22983 mysql 9 0 11356 4864 1804 S 0.0 0.4 0:00 mysqld
23021 mysql 8 0 11356 4864 1804 S 0.0 0.4 0:00 mysqld
23022 mysql 9 0 11356 4864 1804 S 0.0 0.4 0:00 mysqld
23023 mysql 9 0 11356 4864 1804 S 0.0 0.4 0:00 mysqld
23024 mysql 9 0 11356 4864 1804 S 0.0 0.4 0:00 mysqld
23025 mysql 9 0 11356 4864 1804 S 0.0 0.4 0:00 mysqld
23048 mysql 9 0 11356 4864 1804 S 0.0 0.4 0:00 mysqld
23049 mysql 9 0 11356 4864 1804 S 0.0 0.4 0:00 mysqld
23050 mysql 9 0 11356 4864 1804 S 0.0 0.4 0:00 mysqld
23051 mysql 9 0 11356 4864 1804 S 0.0 0.4 0:00 mysqld
23166 root 9 0 436 372 372 S 0.0 0.0 0:00 portsentry
23538 named 9 0 3748 3496 3372 S 0.0 0.3 0:00 named
23539 named 9 0 3748 3496 3372 S 0.0 0.3 0:00 named
23541 named 9 0 3748 3496 3372 S 0.0 0.3 0:00 named
23542 named 9 0 3748 3496 3372 S 0.0 0.3 0:00 named
23543 named 9 0 3748 3496 3372 S 0.0 0.3 0:00 named
23706 mailnull 9 0 1136 936 880 S 0.0 0.0 0:00 exim
23711 mailnull 9 0 916 668 668 S 0.0 0.0 0:00 exim
23719 root 9 0 1160 1100 1032 S 0.0 0.1 0:00 antirelayd
23726 root 8 0 17636 2468 2156 S 0.0 0.2 0:00 spamd
24128 mailnull 9 0 3484 1508 1380 S 0.0 0.1 0:00 eximstats
24136 mysql 9 0 11356 4864 1804 S 0.0 0.4 0:00 mysqld
24151 root 9 0 4504 1748 1516 S 0.0 0.1 0:00 cpsrvd
24158 root 18 19 5428 4216 4000 S N 0.0 0.4 0:00 cpanellogd
24166 root 8 0 3864 1704 1296 S 0.0 0.1 0:00 cppop
24171 nobody 9 0 1860 1128 1128 S 0.0 0.1 0:00 entropychat
24176 nobody 9 0 560 332 332 S 0.0 0.0 0:00 melange
24200 cpanel 9 0 1268 992 984 S 0.0 0.0 0:00 stunnel-4.04loc
24204 mailman 9 0 3488 744 744 S 0.0 0.0 0:00 mailmanctl
24205 mailman 9 0 3524 1648 772 S 0.0 0.1 0:00 python2
24206 mailman 9 0 3516 1664 756 S 0.0 0.1 0:00 python2
24207 mailman 9 0 3536 1596 780 S 0.0 0.1 0:00 python2
24208 mailman 9 0 3412 1612 660 S 0.0 0.1 0:00 python2
in %MEM all process are under 1 !!
in %CPU all process are under 1!!

Yesterday I rebooted the server, but doesn't work, mi memory under Service Status is the same: 80% yellow light.

somebody knows???


thank you

Rodolfochka
 

rodolfochka

Active Member
Feb 1, 2004
35
0
156
Mexico City
this are the top process:

2310 root 9 0 14180 13M 6584 S 0.0 1.3 0:00 whostmgr2
2025 nobody 9 0 8396 8172 3660 S 0.0 0.7 0:00 httpd
2068 nobody 9 0 8360 8136 3332 S 0.0 0.7 0:01 httpd
1836 nobody 9 0 7984 7764 3352 S 0.0 0.7 0:00 httpd
1837 nobody 9 0 5296 5104 3172 S 0.0 0.4 0:00 httpd
22983 mysql 9 0 11436 4976 1860 S 0.0 0.4 0:00 mysqld
23021 mysql 8 0 11436 4976 1860 S 0.0 0.4 0:00 mysqld
23022 mysql 9 0 11436 4976 1860 S 0.0 0.4 0:00 mysqld


1.3 whostmgr2 under %MEM
 
Last edited:

rodolfochka

Active Member
Feb 1, 2004
35
0
156
Mexico City
did you mean this??? :

Mem: 1023580K av, 986680K used, 36900K free, 0K shrd, 72492K buff
Swap: 2040244K av, 528084K used, 1512160K free 113176K cached
 

aromal

Registered
Sep 5, 2002
2
0
151
Do an ls -al in /tmp and look for any abnormal files there. There is a possibility of having some malicious processes which you are not able to see from the process list in top (M). You can also do a netstat to see any invalid processes.
 

Manuel_accu

Well-Known Member
Jun 19, 2005
191
0
166
Hi,

Use below mentioned command to get top memory consuming processes"

ps aux | head -1;ps aux --no-headers| sort -rn +3 | head

Use below command to get top cpu consuming processes:

ps aux | head -1;ps aux --no-headers | sort -rn +2

thx
 

msmollin

Registered
Aug 11, 2006
4
0
151
Rodol, I encountered something similar the past couple of days. From your command line, run the "top" command without quotes. See what floats to the top...... mine was cpanelsync, and I had to do a kill on the PID, which is worrisome and the reason I'm here on the forums. I want to make sure I just didn't beat the crap out of my cpanel install. Post up how you make out.

--Matt--
 

Viki

Registered
Nov 18, 2006
3
0
151
Code:
USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
root      3982  0.0  0.2 25660 23232 ?       S    Nov22   0:00 spamd child
root      3980  0.0  0.2 25660 23276 ?       S    Nov22   0:00 spamd child
root      3966  0.0  0.2 25528 23524 ?       Ss   Nov22   0:01 /usr/bin/spamd -d --allowed-ips=127.0.0.1 --pidfile=/var/run/spamd.pid --max-children=5
mysql    27725  0.8  0.2 109240 17984 ?      Sl   Nov22   6:46 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/carbon.hostingdunia.net.pid --skip-external-locking
I check and found all these are taking up my memory.
Last one is creating highest server load too.

Can anyone tell how can i get rid of these things?
 

bjarne

Well-Known Member
Mar 23, 2002
135
0
316
I my experience system will use most of the memory however much so the clue is to look for at swap usage. You could also simply restart exim and httpd - most of the time that will help.

If you have a bussy system with spamassign and clam and web and mail you will use ram. More activety more ram.

I would say get more ram or move some accounts to a new server:)
 

smksa

Member
Aug 1, 2006
21
0
151
command cannot run

Hi,

Use below mentioned command to get top memory consuming processes"

ps aux | head -1;ps aux --no-headers| sort -rn +3 | head

Use below command to get top cpu consuming processes:

ps aux | head -1;ps aux --no-headers | sort -rn +2

thx

Can anybody help why my Centos 5 server not able to run the above command ? :confused:

It shows as follows :

[[email protected] ~]# ps aux | head -1;ps aux --no-headers | sort -rn +2
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
sort: open failed: +2: No such file or directory

[[email protected] ~]# ps aux | head -1;ps aux --no-headers| sort -rn +3 | head
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
sort: open failed: +3: No such file or directory