Antivirus configuration parameters

Antivirus is one of the processes that can use a lot of hardware resources (memory and CPUs). An aggressive antivirus policy can decrease the application's performance and negatively affect end users' experience with the user interface.

The antivirus analyzer can work in two modes (depending on the value of the background.antivirus.check parameter):

  • Live mode.
  • Batch mode.

The antivirus checker in live mode can dramatically decrease the end users' experience with the user interface. Take into consideration that, to analyze some documents, the antivirus can take up to 3 seconds or more, which will be added to the upload time.

Field / PropertyTypeDescription

system.antivir

String

Set the antivirus path.

/usr/bin/clamscan

background.antivirus.check

Boolean

Enable or disable the background antivirus checker. By default, it is set to false.

There's a crontab task (Administration > Crontab) named Antivirus Checker Worker that takes control of the background antivirus checker.

For more information, see Built-in crontab tasks.

When the background check is disabled, the antivirus is processed while uploading any document. This can add extra time to the upload process (in some cases more than 3 seconds to check a document). For example, when you perform a large import of files, the total time to complete the operation can be multiplied by three or more when this option is disabled. We suggest enabling it.

background.antivirus.check.threads

Integer

Number of concurrent threads that will be used for the antivirus.

This number should be less than or equal to the number of hardware cores.

background.antivirus.check.batch

Integer

Indicates the number of documents to be processed in each indexing cycle.

When the parameter "background.antivirus.check" is enabled, it is good practice for the batch size to be a multiple of the "background.antivirus.check.threads" value.

Table of contents [ Hide Show ]