ClamAV and out of memory

Discussion in 'Installation/Configuration' started by jaripetteri, Dec 5, 2010.

  1. jaripetteri

    jaripetteri New Member

    I have VPS with 384MB of RAM and running Debian Lenny on it. I followed perfect server howto for ISPConfig 3.0.3 and ended up on following error. Everything else looks like working just fine but I can't sent or receive any email. I did find this error on ClamAV start:

    Code:
    mail:/home/jari# /etc/init.d/clamav-daemon restart
    Stopping ClamAV daemon: clamd.
    Starting ClamAV daemon: clamd LibClamAV Warning: ***********************************************************
    LibClamAV Warning: ***  This version of the ClamAV engine is outdated.     ***
    LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***
    LibClamAV Warning: ***********************************************************
    LibClamAV Error: mpool_malloc(): Can't allocate memory (262144 bytes).
    LibClamAV Error: cli_ac_addpatt: Can't allocate memory for next->trans
    LibClamAV Error: cli_parse_add(): Problem adding signature (1).
    LibClamAV Error: Problem parsing database at line 58173
    LibClamAV Error: Can't load main.ndb: Malformed database
    LibClamAV Error: cli_tgzload: Can't load main.ndb
    LibClamAV Error: Can't load /var/lib/clamav/main.cld: Malformed database
    ERROR: Malformed database
     failed!
    
    Do I need to get more RAM on my VPS or is there something else I can do?
     
  2. till

    till Super Moderator

  3. jaripetteri

    jaripetteri New Member

    Thanks for the link. So my VPS provider has next RAM option 512MB so what you think should that be enough to run also clamav? This server will have less that ten email accounts and only few domains and websites with quite low traffic. Maybe about 10-20GB/year.
     
  4. falko

    falko Super Moderator

    It could work for ten email accounts, but you have to try.
     
  5. jaripetteri

    jaripetteri New Member

    I upgraded to 512MB and so far everything is up and running. Thanks again.
     

Share This Page