This is a discussion on Re: [AMaViS-user] amavis process consuming >1GB RAM within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; Pavel, > from time to time, our antivirus systems suffer from exhaustion of all > available RAM. I'm trying ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Pavel,
> from time to time, our antivirus systems suffer from exhaustion of all > available RAM. I'm trying to find out what's going on. > PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND > 16250 amavis 17 0 1457M 1.3G 344 R 21.3 66.2 1:15 1 amavisd > 25205 amavis 15 0 42888 29M 2596 S 4.3 1.4 0:13 1 amavisd > 4666 mysql 16 0 30404 10M 1124 S 3.5 0.5 195:58 0 mysqld .... 1.4 GB is really bizarre, it indicates something is badly wrong with the processing of that message. > [root@antivir4 spamassassin]# strace -p 16250 > Process 16250 attached - interrupt to quit > pread(35, "\0\0\0\0\1\0\0\0\343\374\0\0\0\0\0\0\0\0\0\0\250\ 0p\1\0"..., > 4096, 265170944) = 4096 > pread(35, > "\0\0\0\0\1\0\0\0\6)\1\0\277\230\0\0\0\0\0\0>\0$\v \0\2\341"..., > 4096,311451648) = 4096 > open("/var/spool/amavis/.spamassassin/auto-whitelist.lock.antivir4.iol.cz.1 >6250", O_WRONLY|O_CREAT|O_EXCL|O_LARGEFILE, 0700) = 36 > ioctl(36, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfffb1b8) = -1 ENOTTY > (Inappropriateioctl for device) > _llseek(36, 0, [0], SEEK_CUR) = 0 > fstat64(36, {st_mode=S_IFREG|0700, st_size=0, ...}) = 0 > fcntl64(36, F_SETFD, FD_CLOEXEC) = 0 > <several minutes of no output> Could be it has to do something with a db self-reorganization or cleaning or database corruption. I suggest you move the SA Bayes and AWL databases to SQL, it gives slightly better performance and hugely reduced maintenance problems (no auto-expiry issues). Mark ------------------------------------------------------- This SF.net email is sponsored by: 2005 Windows Mobile Application Contest Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones for the chance to win $25,000 and application distribution. Enter today at http://ads.osdn.com/?ad_id=6882&alloc_id=15148&op=click _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/...fo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/ |