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 of the user interface.
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-user experience of the user interface. Take into consideration that to analyse some documents the antivirus can take up to 3 seconds or more, which will be added to the upload time.
| Field / Property | Type | Description |
|---|---|---|
|
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 background check is disabled, the antivirus is processed while uploading any document. That 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 3 or more with this option disabled. Our suggestion is to enable 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 on each indexing cycle. When parameter "background.antivirus.check is enabled", it is good practice to be a multiple of the "background.antivirus.check.threads" value. |