Hi!
In a VPS (on OpenVZ) has this calmscan problem /vps: 2GB RAM, CentOS 6.5 x64/:
# clamscan -r / --exclude-dir=/sys/ --quiet --infected --log=${LOG}
LibClamAV Error: mpool_malloc(): Can't allocate memory (262144 bytes).
LibClamAV Error: cli_mpool_strdup(): Can't allocate memory (22 bytes).
LibClamAV Error: cli_loadhash: Problem parsing database at line 1789234
LibClamAV Error: Can't load main.mdb: Malformed database
LibClamAV Error: cli_tgzload: Can't load main.mdb
LibClamAV Error: Can't load /var/lib/clamav/main.cvd: Malformed database
LibClamAV Error: cli_loaddbdir(): error loading database /var/lib/clamav/main.cvd
ERROR: Malformed database
The memory:
~# free -m
total used free shared buffers cached
Mem 2048 1860 187 0 0 1726
-/+ buffers/cache: 133 1914
Swap: 512 71 440
Is it clamav problem or openvz settings?
G.