Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: brian MOore on July 03, 2002, 11:56:39 PM
-
greetings all. having a strange problem with my 5.1.2 box. Until yesterday, everything was working fine and I was only using about 50 mb of my 192 mb physical ram. all of a sudden, I am hitting 90 to 99 percent regularly. don't know what happened for sure. below is the output of ps -aux. there seem to me to be a lot of httpd processes running never having looked at this output before, wasn't sure if this looks normal. comments and ideas on correcting tips would be much appreciated.
thanks. brian.
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.2 1424 544 ? S 07:13 0:07 init [7]
root 2 0.0 0.0 0 0 ? SW 07:13 0:00 [kflushd]
root 3 0.0 0.0 0 0 ? SW 07:13 0:00 [kupdate]
root 4 0.0 0.0 0 0 ? SW 07:13 0:00 [kswapd]
root 5 0.0 0.0 0 0 ? SW 07:13 0:00 [keventd]
root 6 0.0 0.0 0 0 ? SW< 07:13 0:00 [mdrecoveryd]
root 256 0.0 0.1 1428 352 ? S 07:14 0:00 /usr/local/bin/sv
root 275 0.0 0.1 1392 320 ? S 07:14 0:00 supervise qmail
root 276 0.0 0.1 1392 320 ? S 07:14 0:00 supervise log
qmaill 277 0.0 0.1 1404 312 ? S 07:14 0:00 /usr/local/bin/mu
root 285 0.0 0.3 1500 656 ? S 07:14 0:01 syslogd -m 0 -a /
root 290 0.0 0.4 1772 880 ? S 07:14 0:00 klogd -c 1
root 735 0.0 0.3 1468 640 ? S 07:14 0:00 crond
root 784 0.0 0.4 2204 904 ? S 07:14 0:00 xinetd -stayalive
root 821 0.0 1.0 2036 2028 ? SL 07:14 0:00 ntpd
root 862 0.0 0.5 2252 1032 ? S 07:14 0:00 sh /usr/sbin/adsl
root 871 0.0 0.4 1952 884 ? S 07:14 0:00 /usr/sbin/pppd pt
root 886 0.0 0.2 1428 516 ? S 07:14 0:06 /usr/sbin/pppoe -
root 952 0.0 0.3 1644 728 ? S 07:14 0:00 /usr/sbin/dhcpd e
qmails 993 0.0 0.2 1452 392 ? S 07:14 0:00 qmail-send
root 995 0.0 0.1 1404 336 ? S 07:14 0:00 qmail-lspawn ./Ma
qmailr 996 0.0 0.1 1404 344 ? S 07:14 0:00 qmail-rspawn
qmailq 997 0.0 0.1 1396 344 ? S 07:14 0:00 qmail-clean
mail 1028 0.0 0.3 1524 584 ? S 07:14 0:00 /usr/sbin/smtpfwd
root 1223 0.0 1.4 6008 2796 ? S 07:14 0:00 /usr/sbin/httpd-a
root 1248 0.0 0.5 2252 1032 ? S 07:14 0:00 sh /usr/bin/safe_
mysql 1297 0.0 2.6 27804 5188 ? S 07:14 0:00 /usr/libexec/mysq
root 1323 0.0 0.5 3792 996 ? S 07:14 0:00 squid -D
squid 1324 0.0 2.5 6896 4976 ? S 07:14 0:01 (squid) -D
mysql 1326 0.0 2.6 27804 5188 ? S 07:14 0:00 /usr/libexec/mysq
mysql 1327 0.0 2.6 27804 5188 ? S 07:14 0:00 /usr/libexec/mysq
mysql 1328 0.0 2.6 27804 5188 ? S 07:14 0:00 /usr/libexec/mysq
squid 1329 0.0 0.1 1392 344 ? S 07:14 0:00 (unlinkd)
nobody 1331 0.0 3.6 8472 7136 ? S 07:15 0:00 /usr/sbin/dansgua
nobody 1333 0.0 3.6 8476 7136 ? S 07:15 0:00 /usr/sbin/dansgua
root 1353 0.0 0.6 3492 1264 ? S 07:15 0:00 smbd -D
root 1358 0.0 0.6 2608 1304 ? S 07:15 0:00 nmbd -D
root 1361 0.0 0.5 2560 1024 ? S 07:15 0:00 nmbd -D
root 1372 0.1 3.2 7896 6352 ? S 07:15 0:43 /usr/sbin/snort-m
mysql 1383 0.0 2.6 27804 5188 ? S 07:15 0:00 /usr/libexec/mysq
root 1386 0.0 0.8 3016 1644 ? S 07:15 0:00 perl /usr/local/b
root 1412 0.0 0.0 0 0 ? SW 07:15 0:00 [khubd]
dns 1437 0.0 1.0 3164 2060 ? S 07:15 0:01 /usr/sbin/named -
root 1438 0.0 0.3 1460 588 ? S 07:15 0:00 /usr/sbin/pptpd -
root 1441 0.0 0.2 1396 452 tty1 S 07:15 0:00 /sbin/mingetty tt
root 1442 0.0 0.2 1396 452 tty2 S 07:15 0:00 /sbin/mingetty tt
root 1443 0.0 0.2 1396 452 tty3 S 07:15 0:00 /sbin/mingetty tt
uucp 1444 0.0 0.9 3376 1792 ? S 07:15 0:00 /usr/sbin/faxgett
admin 2400 0.0 1.4 6008 2800 ? S 11:25 0:00 /usr/sbin/httpd-a
root 2409 0.0 3.0 45364 5868 ? S 11:25 0:01 httpd
www 2412 0.0 3.1 45500 6104 ? S 11:25 0:00 httpd
www 2413 0.0 4.3 47040 8360 ? S 11:25 0:04 httpd
www 2414 0.0 4.3 47140 8352 ? S 11:25 0:00 httpd
www 2415 0.0 3.1 45496 6064 ? S 11:25 0:00 httpd
www 2416 0.0 4.2 47084 8152 ? S 11:25 0:01 httpd
www 2417 0.0 3.1 45496 6068 ? S 11:25 0:00 httpd
www 2418 0.0 3.1 45496 6088 ? S 11:25 0:00 httpd
www 2419 0.0 4.2 47100 8156 ? S 11:25 0:01 httpd
www 2420 0.0 4.5 47524 8776 ? S 11:25 0:00 httpd
www 2421 0.0 3.9 46752 7728 ? S 11:25 0:00 httpd
www 2499 0.0 3.1 45496 6092 ? S 11:49 0:00 httpd
www 2524 0.0 4.2 47100 8168 ? S 11:50 0:01 httpd
www 2682 0.0 3.1 45496 6068 ? S 12:21 0:00 httpd
mysql 2752 0.0 2.6 27804 5188 ? S 12:35 0:00 /usr/libexec/mysq
mysql 2753 0.0 2.6 27804 5188 ? S 12:35 0:00 /usr/libexec/mysq
mysql 2761 0.0 2.6 27804 5188 ? S 12:36 0:00 /usr/libexec/mysq
mysql 2776 0.0 2.6 27804 5188 ? S 12:37 0:00 /usr/libexec/mysq
root 3043 0.0 0.3 1620 720 ? S 14:04 0:00 in.telnetd: gwvir
root 3044 0.0 0.5 2384 1132 pts/1 S 14:04 0:00 login -- root
root 3045 0.0 0.6 2372 1284 pts/1 S 14:04 0:00 -bash
root 3093 0.0 0.3 2684 772 pts/1 R 14:10 0:00 ps -aux
-
Show me the contents of:
free -m
Samba will cache RAM and free it gracefully, so if you have Samba running it is normal to see this type of memory usage.
Nathan
-
Run top, and then press the 'M' (capital) to sort by memory usage... You'll usually see something like :-
1579 squid 0 0 15388 15M 1376 S 0.0 5.8 6:38 squid
1675 root 0 0 6324 6324 1476 S 0.0 2.4 0:01 console
5689 www 0 0 4808 4808 4644 S 0.0 1.8 0:00 httpd
5680 www 0 0 4784 4784 4624 S 0.0 1.8 0:00 httpd
5681 www 0 0 4784 4784 4624 S 0.0 1.8 0:00 httpd
5682 www 0 0 4784 4784 4628 S 0.0 1.8 0:00 httpd
5683 www 0 0 4784 4784 4628 S 0.0 1.8 0:00 httpd
5684 www 0 0 4784 4784 4620 S 0.0 1.8 0:00 httpd
5685 www 0 0 4784 4784 4624 S 0.0 1.8 0:00 httpd
5686 www 0 0 4784 4784 4628 S 0.0 1.8 0:00 httpd
5687 www 0 0 4784 4784 4624 S 0.0 1.8 0:00 httpd
5688 www 0 0 4784 4784 4628 S 0.0 1.8 0:00 httpd
1246 root 0 0 4692 4692 4560 S 0.0 1.7 0:11 httpd
1673 dns 0 0 4544 4544 2140 S 0.0 1.7 0:00 named
1678 dns 0 0 4544 4544 2140 S 0.0 1.7 0:02 named
1679 dns 0 0 4544 4544 2140 S 0.0 1.7 0:19 named
1680 dns 0 0 4544 4544 2140 S 0.0 1.7 0:09 named
1681 dns 0 0 4544 4544 2140 S 0.0 1.7 0:01 named
1540 mysql 0 0 4308 4308 1644 S 0.0 1.6 0:00 mysqld
1581 mysql 0 0 4308 4308 1644 S 0.0 1.6 0:03 mysqld
1582 mysql 0 0 4308 4308 1644 S 0.0 1.6 0:00 mysqld
1610 mysql 0 0 4308 4308 1644 S 0.0 1.6 0:00 mysqld
5445 admin 0 0 2888 2888 2664 S 0.0 1.1 0:00 httpd-admin
5453 admin 0 0 2888 2888 2664 S 0.0 1.1 0:00 httpd-admin
1457 admin 0 0 2884 2884 2660 S 0.0 1.1 0:00 httpd-admin
1454 root 0 0 2752 2752 2596 S 0.0 1.0 0:09 httpd-admin
note that Squid has grabbed 15M of ram and apache has grabbed almost 5M per child process. (serves me right for serving media rich content with dynamic content enabled to an intranet :P )
I have 256M and about 3M free ( ~99%) without using any swap at the moment.
BTW this is a pretty clean 5.5b9 install until about 8 minutes time :)
Craig F.