Kaspersky Standard | Plus | Premium

How to limit memory usage by the application

You can limit the amount of RAM that the Kaspersky application uses when running OAS and ODS tasks.

Limiting memory usage can be useful for systems with a large amount of RAM (more than 5 GB).

You can use the ScanMemoryLimit setting in the kfl.ini configuration file to adjust the amount of RAM used by the application when scanning files. Default value: 8192 MB. The minimum value is 2 MB. If the specified value is less than 2 MB, the application uses the minimum value (2 MB). If the specified value is greater than the amount of RAM available on the device, the application uses up to 25% of the RAM. This value cannot be changed.

This setting limits only the amount of memory used when scanning files. That means that the total amount of memory required by the application can be more than the value of this setting.

To specify a limit on memory use when scanning files:

  1. Stop the Kaspersky application.
  2. Open the /var/opt/kaspersky/kfl/common/kfl.ini file for editing.
  3. Under [General], specify the required amount of RAM in the ScanMemoryLimit setting:

    ScanMemoryLimit=<amount of memory in megabytes>

  4. Start the Kaspersky application.

The new memory usage limit for scanning files will be in effect after the application restarts.