Hi Mark,
Thanks for your reply. Today I have tried to upgrade amavis to version
2.4.5 but again facing the same problem. I kept number of child
processes as it is (not changed the amavisd.conf file).
Below are output of free , top and ps *before upgrading amavis*
------------------------------------------------------------------------
# free -m
total used free shared
buffers cached
Mem: 2026 1412 *614* 0 178 365
-/+ buffers/cache: 868 1157
Swap: 1023 0 1023
------------------------------------------------------------------------
top - 03:05:13 up 6 days, 15:29, 4 users, load average: 0.09, 0.06, 0.01
Tasks: 102 total, 1 running, 101 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.1% us, 0.1% sy, 0.0% ni, 99.6% id, 0.0% wa, 0.2% hi, 0.0% si
Mem: 2075220k total, 1447844k used, 627376k free, 183108k buffers
Swap: 1048568k total, 192k used, 1048376k free, 373812k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
4658 root 16 0 543m 94m 23m S 0.0 4.7 35:05.13 ns-slapd
3518 amavis 16 0 63932 52m 4932 S 0.0 2.6 0:20.61 amavisd
4903 amavis 16 0 59764 48m 4932 S 0.0 2.4 0:10.77 amavisd
1911 amavis 16 0 53668 42m 4928 S 0.0 2.1 0:03.22 amavisd
3921 amavis 16 0 49928 38m 4808 S 0.0 1.9 0:01.42 amavisd
1904 amavis 16 0 49928 38m 4808 S 0.0 1.9 0:00.00 amavisd
1913 amavis 16 0 49928 38m 4808 S 0.0 1.9 0:00.00 amavisd
2001 amavis 16 0 49928 38m 4808 S 0.0 1.9 0:00.00 amavisd
6364 amavis 16 0 49928 38m 4808 S 0.0 1.9 0:00.00 amavisd
6438 amavis 16 0 49928 38m 4808 S 0.0 1.9 0:00.00 amavisd
7004 amavis 16 0 49928 38m 4808 S 0.0 1.9 0:00.00 amavisd
7123 amavis 16 0 49928 38m 4808 S 0.0 1.9 0:00.00 amavisd
------------------------------------------------------------------------
# ps auxwww |grep amavisd
amavis 27048 0.0 1.9 49020 39632 ? Ss 08:54 0:00
amavisd (master)
amavis 27055 0.3 2.6 64132 54984 ? S 08:54 0:08
amavisd (ch1-27055-01-25-idle)
amavis 27056 0.7 3.9 91348 82148 ? S 08:54 0:20
amavisd (ch1-27056-01-61-idle)
amavis 28981 0.0 1.9 49020 39632 ? S 09:03 0:00
amavisd (virgin child)
amavis 32667 0.0 1.9 49020 39632 ? S 09:21 0:00
amavisd (virgin child)
amavis 1389 0.0 1.9 49020 39632 ? S 09:26 0:00
amavisd (virgin child)
amavis 1528 0.0 1.9 49020 39632 ? S 09:27 0:00
amavisd (virgin child)
amavis 2889 0.0 1.9 49020 39632 ? S 09:32 0:00
amavisd (virgin child)
amavis 3038 0.0 1.9 49020 39632 ? S 09:32 0:00
amavisd (virgin child)
amavis 3796 4.1 2.4 58988 49848 ? S 09:36 0:04
amavisd (ch1-03796-01-12-idle)
amavis 3885 0.0 1.9 49020 39632 ? S 09:37 0:00
amavisd (virgin child)
------------------------------------------------------------------------
Below are output of free , top and ps *After** upgrading amavis to 2.4.5
*------------------------------------------------------------------------
# free -m
total used free shared buffers
cached
Mem: 2026 2015 10 0 67 123
-/+ buffers/cache: 1825 201
Swap: 1023 8 1015
------------------------------------------------------------------------
top - 08:51:27 up 6 days, 21:15, 6 users, load average: 0.33, 0.38, 0.31
Tasks: 109 total, 1 running, 108 sleeping, 0 stopped, 0 zombie
Cpu(s): 2.7% us, 0.6% sy, 0.0% ni, 96.3% id, 0.2% wa, 0.2% hi, 0.1% si
Mem: 2075220k total, 2064628k used, 10592k free, 68892k buffers
Swap: 1048568k total, 8300k used, 1040268k free, 126520k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
8487 amavis 16 0 273m 263m 5004 S 0.0 13.0 1:42.57 amavisd
8484 amavis 15 0 260m 250m 4960 S 0.0 12.3 2:19.15 amavisd
8481 amavis 16 0 217m 207m 5000 S 0.0 10.2 1:53.16 amavisd
8479 amavis 16 0 217m 207m 4960 S 0.0 10.2 1:26.47 amavisd
8483 amavis 16 0 208m 193m 4952 S 0.0 9.5 1:37.21 amavisd
8482 amavis 16 0 142m 131m 4960 S 0.0 6.5 1:45.12 amavisd
8480 amavis 16 0 133m 121m 4952 S 4.7 6.0 0:44.37 amavisd
4658 root 15 0 543m 94m 23m S 0.3 4.7 35:33.19 ns-slapd
8486 amavis 16 0 81264 69m 4936 S 0.0 3.4 0:40.92 amavisd
8488 amavis 16 0 67532 56m 4952 S 0.0 2.8 0:12.95 amavisd
8485 amavis 16 0 54496 43m 4940 S 0.0 2.1 0:02.07 amavisd
8476 amavis 16 0 51896 40m 4816 S 0.0 2.0 0:00.45 amavisd
10467 root 16 0 24140 6384 2656 S 0.0 0.3 0:01.44 snmpd
10466 apache 18 0 16288 6244 4340 S 0.0 0.3 0:00.00 httpd
10468 apache 18 0 16288 6244 4340 S 0.0 0.3 0:00.00 httpd
2955 root 16 0 14008 5816 4040 S 0.0 0.3 0:01.19 httpd
------------------------------------------------------------------------
# ps auxwww |grep amavisd
amavis 8476 0.0 2.0 51896 41536 ? Ss
03:13 0:00 amavisd (master)
amavis 8479 0.2 4.8 * 110628* 100524 ? S
03:13 0:38 amavisd (ch4-08479-04-40-idle)
amavis 8480 0.0 3.5 83296 73124 ? S
03:13 0:06 amavisd (ch1-avail)
amavis 8481 0.0 2.5 63344 53144 ? S
03:13 0:16 amavisd (ch3-avail)
amavis 8482 0.3 3.7 88168 77912 ? S
03:13 0:58 amavisd (ch4-08482-04-12-idle)
amavis 8484 0.2 5.7 * 128576* 118296 ? S
03:13 0:40 amavisd (ch3-08484-03-15-idle)
amavis 8485 0.0 2.1 54496 44388 ? S
03:13 0:02 amavisd (ch1-avail)
amavis 8487 0.1 3.7 87204 77020 ? S
03:13 0:19 amavisd (ch3-08487-03-56-idle)
amavis 8488 0.0 2.7 67532 57344 ? S
03:13 0:12 amavisd (ch1-avail)
amavis 8486 0.2 3.4 81264 70900 ? S
03:13 0:40 amavisd (ch2-avail)
amavis 8483 0.1 7.7 * 170560* 160348 ? S
03:13 0:24 amavisd (ch2-08483-02-15-idle)
------------------------------------------------------------------------
I wonder what could be the problem. As I don't see any errors in maillog
/ amavis log. Mails were getting properly scanned in a moderate amount
of time.
What I have observed, when I upgraded to new amavisd, mosts of the
amavisd processes started eating the available memory in the span of 6
hours.
--
Prashant Dabre
[EMAIL PROTECTED] wrote:
Date: Tue, 26 Jun 2007 20:19:29 +0200 From: Mark Martinec
<[EMAIL PROTECTED]> Subject: Re: [AMaViS-user] memory leak
problem in version amavisd-new-2.4.3 (20060930) To:
[email protected] Message-ID:
<[EMAIL PROTECTED]> Content-Type:
text/plain; charset="us-ascii" Prashant Dabre,
> > I am currently using amavisd-new-2.3.1. While upgrading to version 2.4.3
>
Why would one want to 'upgrade' to a nine months old version?
> > I have not changed my old amavisd conf file which I am using
> > with amavisd-new-2.3.1 .
>
Ok.
> > I started getting memory problem. I have also tried to increase
> > the log level of amavis to 5 but not found any error in maillog.
>
> > Are there any memory related issues reported for
> > this version amavisd-new-2.4.3 (20060930) ?
>
Not that I would know.
> > I am using Red Hat Enterprise Linux ES release 4 (Nahant). Following is
> > the output of top command :
>
This doesn't tell much. The output of ps would be more informative.
> > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
> > 30679 amavis 16 0 86492 74m 4948 S 0.0 3.7 0:16.58 amavisd
>
Ok, and what was the VIRT/RES/SHR with previous version?
50-90 MB of virtual memory per process looks pretty much normal.
Have you kept the number of child processes the same?
Mark
--
The sender of this email subscribes to Perimeter eSecurity's email
anti-virus service. This email has been scanned for malicious code and is
believed to be virus free. For more information on email security please
visit: http://www.perimeterusa.com/email-defense-content.html
This communication is confidential, intended only for the named recipient(s)
above and may contain trade secrets or other information that is exempt from
disclosure under applicable law. Any use, dissemination, distribution or
copying of this communication by anyone other than the named recipient(s) is
strictly prohibited. If you have received this communication in error, please
delete the email and immediately notify our Command Center at 203-541-3444.
Thanks
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/