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 previous message
makgab is currently offline  makgab
Messages: 2
Registered: January 2014
Junior Member

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?

Read Message
Read Message
Previous Topic: Discovering TOP process on virtual machine
Next Topic: ploop with standard linux kernel
Goto Forum:

Current Time: Fri Jul 19 22:08:28 GMT 2024

Total time taken to generate the page: 0.02530 seconds