Memory leak and deep swap upon the restart?
Abdullah Ibn Hamad Al-Marri
almarrie at gmail.com
Thu Mar 15 03:55:26 UTC 2007
Hello,
I have a webmail server, has apache 2.2.4, mysql 5.0.33, php 5.2.1,
clamav, mailscanner ..etc.
The weird issue it goes into deep swap when it starts or I restart it. *sigh*
This happened since like 6 months I don't know why? it was okay before that.
here is the top info
last pid: 790; load averages: 0.00, 0.06, 0.05
up 0+00:06:50 03:51:28
69 processes: 1 running, 68 sleeping
CPU states: 0.0% user, 0.0% nice, 0.4% system, 0.0% interrupt, 99.6% idle
Mem: 323M Active, 91M Inact, 56M Wired, 27M Cache, 52M Buf, 988K Free
Swap: 2048M Total, 104M Used, 1944M Free, 5% Inuse
Here is the ps -aux output
mail# ps -aux
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
root 10 98.7 0.0 0 8 ?? RL 3:45AM 5:55.48 [idle]
root 0 0.0 0.0 0 0 ?? WLs 3:45AM 0:00.00 [swapper]
root 1 0.0 0.0 820 140 ?? ILs 3:45AM 0:00.01 /sbin/init --
root 2 0.0 0.0 0 8 ?? DL 3:45AM 0:00.02 [g_event]
root 3 0.0 0.0 0 8 ?? DL 3:45AM 0:00.22 [g_up]
root 4 0.0 0.0 0 8 ?? DL 3:45AM 0:00.17 [g_down]
root 5 0.0 0.0 0 8 ?? DL 3:45AM 0:00.00 [thread taskq]
root 6 0.0 0.0 0 8 ?? DL 3:45AM 0:00.00 [kqueue taskq]
root 7 0.0 0.0 0 8 ?? DL 3:45AM 0:00.00 [acpi_task_0]
root 8 0.0 0.0 0 8 ?? DL 3:45AM 0:00.00 [acpi_task_1]
root 9 0.0 0.0 0 8 ?? DL 3:45AM 0:00.00 [acpi_task_2]
root 11 0.0 0.0 0 8 ?? WL 3:45AM 0:00.87 [swi4: clock]
root 12 0.0 0.0 0 8 ?? WL 3:45AM 0:00.00 [swi3: vm]
root 13 0.0 0.0 0 8 ?? WL 3:45AM 0:00.13 [swi1: net]
root 14 0.0 0.0 0 8 ?? DL 3:45AM 0:00.06 [yarrow]
root 15 0.0 0.0 0 8 ?? WL 3:45AM 0:00.00
[swi6: Giant taskq]
root 16 0.0 0.0 0 8 ?? WL 3:45AM 0:00.00
[swi6: task queue]
root 17 0.0 0.0 0 8 ?? WL 3:45AM 0:00.00 [swi5: +]
root 18 0.0 0.0 0 8 ?? WL 3:45AM 0:00.00 [irq20: acpi0]
root 19 0.0 0.0 0 8 ?? WL 3:45AM 0:00.19 [irq22: fxp0]
root 20 0.0 0.0 0 8 ?? WL 3:45AM 0:00.11 [irq14: ata0]
root 21 0.0 0.0 0 8 ?? WL 3:45AM 0:00.00 [irq15: ata1]
root 22 0.0 0.0 0 8 ?? WL 3:45AM 0:00.00 [irq1: atkbd0]
root 23 0.0 0.0 0 8 ?? DL 3:45AM 0:01.00 [pagedaemon]
root 24 0.0 0.0 0 8 ?? DL 3:45AM 0:00.78 [vmdaemon]
root 25 0.0 0.0 0 8 ?? DL 3:45AM 0:00.31 [pagezero]
root 26 0.0 0.0 0 8 ?? DL 3:45AM 0:00.00 [bufdaemon]
root 27 0.0 0.0 0 8 ?? DL 3:45AM 0:00.00 [vnlru]
root 28 0.0 0.0 0 8 ?? DL 3:45AM 0:00.03 [syncer]
root 29 0.0 0.0 0 8 ?? DL 3:45AM 0:00.01 [softdepflush]
root 30 0.0 0.0 0 8 ?? DL 3:45AM 0:00.02 [schedcpu]
root 92 0.0 0.0 1364 0 ?? IWs - 0:00.00 adjkerntz -i
root 344 0.0 0.1 1496 440 ?? Ss 3:45AM 0:00.02
/usr/sbin/syslogd -ss -a /var/amavis/var/log
vscan 449 0.0 0.7 45840 3520 ?? Ss 3:45AM 0:00.48
amavisd (master) (perl5.8.8)
postgrey 468 0.0 0.0 8800 0 ?? IWs - 0:00.00
/usr/local/sbin/postgrey --pidfile=/var/run/postgrey.pid --inet=10
root 474 0.0 10.9 61788 56864 ?? Ss 3:45AM 0:02.95
/usr/local/bin/spamd -c -Q -d -r /var/run/spamd/spamd.pid (perl5.8
vscan 482 0.0 0.0 46472 0 ?? IW - 0:00.00
amavisd (virgin child) (perl5.8.8)
vscan 483 0.0 0.0 46472 0 ?? IW - 0:00.00
amavisd (virgin child) (perl5.8.8)
vscan 484 0.0 0.0 46472 0 ?? IW - 0:00.00
amavisd (virgin child) (perl5.8.8)
vscan 485 0.0 0.0 46472 0 ?? IW - 0:00.00
amavisd (virgin child) (perl5.8.8)
vscan 486 0.0 0.0 46472 0 ?? IW - 0:00.00
amavisd (virgin child) (perl5.8.8)
vscan 487 0.0 0.0 46472 0 ?? IW - 0:00.00
amavisd (virgin child) (perl5.8.8)
vscan 488 0.0 0.0 46472 0 ?? IW - 0:00.00
amavisd (virgin child) (perl5.8.8)
vscan 489 0.0 0.0 46472 0 ?? IW - 0:00.00
amavisd (virgin child) (perl5.8.8)
root 633 0.0 0.1 2444 412 ?? Ss 3:45AM 0:00.01
/usr/local/libexec/postfix/master
postfix 644 0.0 0.1 2476 416 ?? S 3:45AM 0:00.01
pickup -l -t fifo -u
postfix 645 0.0 0.1 2524 480 ?? I 3:45AM 0:00.01 qmgr
-l -t fifo -u
root 646 0.0 0.7 61788 3428 ?? I 3:45AM 0:00.01 spamd
child (perl5.8.8)
root 647 0.0 0.3 61788 1424 ?? I 3:45AM 0:00.00 spamd
child (perl5.8.8)
postfix 649 0.0 0.2 18916 1180 ?? Is 3:45AM 0:00.01
MailScanner: master waiting for children, sleeping (perl5.8.8)
postfix 650 0.0 0.5 79972 2464 ?? S 3:45AM 0:03.10
MailScanner: waiting for messages (perl5.8.8)
nobody 658 0.0 0.3 4184 1484 ?? S 3:45AM 0:00.01
/usr/local/sbin/in.imapproxyd
root 667 0.0 1.3 49788 6732 ?? Ss 3:45AM 0:00.18
/usr/local/sbin/httpd
root 680 0.0 0.2 3328 1020 ?? Ss 3:45AM 0:00.00 /usr/sbin/sshd
root 685 0.0 0.1 1500 584 ?? Is 3:45AM 0:00.00
/usr/sbin/cron -s
root 703 0.0 0.1 4380 312 ?? Ss 3:45AM 0:00.01
/usr/local/sbin/spamass-milter -p /var/run/spamass.sock -f -b spam
www 742 0.0 0.0 49864 0 ?? IW - 0:00.00
/usr/local/sbin/httpd
www 763 0.0 1.3 50704 6980 ?? I 3:45AM 0:00.02
/usr/local/sbin/httpd
www 765 0.0 2.0 52184 10140 ?? I 3:45AM 0:00.31
/usr/local/sbin/httpd
www 766 0.0 0.7 49856 3476 ?? I 3:45AM 0:00.01
/usr/local/sbin/httpd
www 767 0.0 0.7 49856 3476 ?? I 3:45AM 0:00.00
/usr/local/sbin/httpd
www 768 0.0 0.7 49856 3476 ?? I 3:45AM 0:00.01
/usr/local/sbin/httpd
www 769 0.0 2.1 50836 10788 ?? I 3:45AM 0:00.07
/usr/local/sbin/httpd
www 770 0.0 2.3 50936 12172 ?? I 3:45AM 0:00.21
/usr/local/sbin/httpd
www 771 0.0 0.0 49816 0 ?? IW - 0:00.00
/usr/local/sbin/httpd
www 772 0.0 0.0 49816 0 ?? IW - 0:00.00
/usr/local/sbin/httpd
www 773 0.0 0.0 49816 0 ?? IW - 0:00.00
/usr/local/sbin/httpd
postfix 774 0.0 0.3 79972 1600 ?? S 3:45AM 0:03.05
MailScanner: waiting for messages (perl5.8.8)
postfix 775 0.0 0.3 79972 1792 ?? S 3:45AM 0:03.05
MailScanner: waiting for messages (perl5.8.8)
postfix 776 0.0 0.3 79972 1376 ?? S 3:45AM 0:03.05
MailScanner: waiting for messages (perl5.8.8)
postfix 777 0.0 14.4 79972 74812 ?? S 3:45AM 0:03.15
MailScanner: waiting for messages (perl5.8.8)
root 781 0.0 0.5 6076 2492 ?? Ss 3:51AM 0:00.03 sshd:
arabian [priv] (sshd)
arabian 783 0.0 0.5 6060 2568 ?? S 3:51AM 0:00.01 sshd:
arabian at ttyp0 (sshd)
root 734 0.0 0.0 1464 0 v0 IWs+ - 0:00.00
/usr/libexec/getty Pc ttyv0
root 735 0.0 0.0 1464 0 v1 IWs+ - 0:00.00
/usr/libexec/getty Pc ttyv1
root 736 0.0 0.0 1464 0 v2 IWs+ - 0:00.00
/usr/libexec/getty Pc ttyv2
root 737 0.0 0.0 1464 0 v3 IWs+ - 0:00.00
/usr/libexec/getty Pc ttyv3
root 738 0.0 0.0 1464 0 v4 IWs+ - 0:00.00
/usr/libexec/getty Pc ttyv4
root 739 0.0 0.0 1464 0 v5 IWs+ - 0:00.00
/usr/libexec/getty Pc ttyv5
root 740 0.0 0.0 1464 0 v6 IWs+ - 0:00.00
/usr/libexec/getty Pc ttyv6
root 741 0.0 0.0 1464 0 v7 IWs+ - 0:00.00
/usr/libexec/getty Pc ttyv7
mysql 494 0.0 0.0 1864 0 con- IW - 0:00.00
/bin/sh /usr/local/bin/mysqld_safe --defaults-extra-file=/var/db/m
mysql 518 0.0 3.7 51508 19184 con- I 3:45AM 0:00.23
/usr/local/libexec/mysqld --defaults-extra-file=/var/db/mysql/my.c
arabian 784 0.0 0.6 4984 2936 p0 Ss 3:51AM 0:00.02 -tcsh (tcsh)
root 786 0.0 0.3 1872 1304 p0 S 3:51AM 0:00.01 su
root 787 0.0 0.6 4992 2916 p0 S 3:51AM 0:00.02 _su (tcsh)
root 791 0.0 0.2 1608 900 p0 R+ 3:51AM 0:00.00 ps -aux
Any hints?
--
Regards,
-Abdullah Ibn Hamad Al-Marri
Arab Portal
http://www.WeArab.Net/
More information about the freebsd-questions
mailing list