Help Center/ Host Security Service/ FAQs/ Others/ What Should I Do If a Virus Scan Task Terminates Unexpectedly?
Updated on 2026-11-05 GMT+08:00

What Should I Do If a Virus Scan Task Terminates Unexpectedly?

Symptom

A virus scan task fails to be executed, and the cause is that the task terminated unexpectedly, as shown in Figure 1.

Figure 1 Scan failed

Possible Causes

The memory usage exceeds the limit.

Solution

  1. Check whether the target server runs Linux or Windows.

    • Linux: Go to 3.
    • Windows: Go to 2.

  2. Increase the server memory, scan the server again, and check whether the problem is resolved.

  3. Log in to the target server and run the following command to check the size of the available memory (available):

    free -h

    [root@hce3-hss-test]# free -h
                Total     used     free   shared   buff/cache     available
    Mem:         7.6G     520M     910M      80M         6.2G          6.7G
    Swap:          0B       0B       0B

  4. Run the following command to modify the mem.agent.max parameter and increase the memory:

    vim /usr/local/hostguard/conf/resource.conf

    You are advised to increase the memory by at least 500 MB, without exceeding the allocatable memory size queried in 3.

    cgroup.cpu:15
    cgroup.mem:500
    ***
    mem.agent.max:1500
    ***

  5. Execute the virus scan task again and check whether the problem is resolved.

    • If yes, no further action is required.
    • If no, obtain the /var/log/hostguard/host_virus_scanner.log log and submit a service ticket to contact technical support.