Antivirus configuration parameters

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

Antivirus analyzer can work in two mode ( depending the value of background.antivirus.check parameter ):

  • Live mode.
  • Batch mode.

Antivirus checker in live mode can dramatically decrease the user interface end user feeling. Take in consideration that to analyse some documents the antivirus can take up to 3 seconds or more what will be added to the uploading time process.

Field / PropertyTypeDescription

system.antivir

String

Set the antivirus path.

/usr/bin/clamscan

background.antivirus.check

Boolean

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

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

For more information Built in crontab tasks.

When background check is disabled the antivirus is processed while uploading any document. That can add extra time to the uploading process be complete ( in some cases more than 3 seconds is the time needed for the antivirus to check a document ). For example when you do a huge import of files the total time to complete the operation can be multiplied by x 3 or more with this option disabled, Our suggestion is set it enabled.

background.antivirus.check.threads

Integer

Number of concurrent threads will be used for antivirus.

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

background.antivirus.check.batch

Integer

Indicate the number of documents be processed on each indexing cycle.

When parameter "background.antivirus.check" is enabled, is a good practice  to be multiple of "background.antivirus.check.threads" value.

Table of contents [ Hide Show ]