Date: Thu, 15 Mar 2007 00:15:43 -0400 From: Kris Kennaway <kris@obsecurity.org> To: Abdullah Ibn Hamad Al-Marri <almarrie@gmail.com> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: Memory leak and deep swap upon the restart? Message-ID: <20070315041543.GA57246@xor.obsecurity.org> In-Reply-To: <499c70c0703142055x5a75ca67p2a87db4b773f2878@mail.gmail.com> References: <499c70c0703142055x5a75ca67p2a87db4b773f2878@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Mar 15, 2007 at 06:55:24AM +0300, Abdullah Ibn Hamad Al-Marri wrote: > 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. Your running processes are trying to use more memory than is present in your system, so swapping is the only possibility. Look at the "VSZ" column (virtual size) to see how overloaded your system is. > USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND > vscan 449 0.0 0.7 45840 3520 ?? Ss 3:45AM 0:00.48 > amavisd (master) (perl5.8.8) > 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 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) > root 667 0.0 1.3 49788 6732 ?? Ss 3:45AM 0:00.18 > /usr/local/sbin/httpd > 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) > 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 Kris
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070315041543.GA57246>