OpenVZ Forum


Home » General » Discussions » Clamscan - can't allocate memory (Clamscan - can't allocate memory )
Clamscan - can't allocate memory [message #51190] Mon, 03 March 2014 08:38 Go to next message
makgab is currently offline  makgab
Messages: 2
Registered: January 2014
Junior Member
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.
Re: Clamscan - can't allocate memory [message #51193 is a reply to message #51190] Tue, 04 March 2014 10:02 Go to previous message
makgab is currently offline  makgab
Messages: 2
Registered: January 2014
Junior Member
I removed the /var/lib/clamav/* files and run freshclam.
The clamscan works, but it cannot open some files for check.
Previous Topic: Discovering TOP process on virtual machine
Next Topic: ploop with standard linux kernel
Goto Forum:
  


Current Time: Tue Jan 14 05:57:52 GMT 2025

Total time taken to generate the page: 0.03357 seconds