RAMUsageLimit

March 5, 2024

ID 201149

Specifies the maximum amount of system memory, in kilobytes (KB) that can be allocated by Kaspersky Scan Engine.

Setting RAMUsageLimit is not recommended for machines with limited CPU performance. For example, when the scan engine is running on a virtual machine, and the CPU resources of the physical host are shared with other virtual machines or processes.

This measure prevents the operating system from running out of memory. Excessive use of system memory (in this case, RAM) can occur when Kaspersky Scan Engine scans large files or receives a lot of simultaneous scan requests. When the RAMUsageLimit limit is reached, Kaspersky Scan Engine stops processing the object that caused the excessive consumption of memory.

Path

ICAPSettings > RAMUsageLimit

Attributes

This element has no attributes.

Value

The recommended RAMUsageLimit value:

  • does not exceed the RAM size.
  • is twice the maximum file size for scanning large files. For example, scanning a 1 GB file requires about 2 GB of RAM.
  • is not less than 600 MB, which is twice the size of the anti-virus database and Kaspersky Scan Engine libraries (300 MB in total). The reason for doubling is that the amount of system memory is doubled when the database is reloaded.

Kaspersky Scan Engine also requires memory resources for all of its components.

Do not set the value of RAMUsageLimit lower than 7 MB. This is the minimum amount of system memory required to ensure the proper functioning of Kaspersky Scan Engine.

If the value of this parameter is 0, the amount of system memory that can be allocated by Kaspersky Scan Engine is not limited.

The default value is 0.

If the value of this parameter is set to 0, the operating system may run out of memory. If Kaspersky Scan Engine uses too much system memory, the operating system may stop the service.

Example

The following is an example of this element.

<RAMUsageLimit>0</RAMUsageLimit> <!-- 0 = unlimited -->

Did you find this article helpful?
What can we do better?
Thank you for your feedback! You're helping us improve.
Thank you for your feedback! You're helping us improve.