Introduction
Real-time antivirus scanning of Artifactory’s installation and data directories can significantly slow down startup and general performance.
This article contains information on which Artifactory directories should be added as excluded directories for Antivirus software, as well as general recommendations to reduce the impact of AV scanning on Artifactory.
Resolution
- Exclude the Artifactory installation directory (and all subdirectories) from on-access AV scanning.
- Exclude the Artifactory home/data directory (and all subdirectories), including the filestore, logs, and configuration directories.
- $ARTIFACTORY_HOME/var/log
- $ARTIFACTORY_HOME/var/etc
- $ARTIFACTORY_HOME/var/data
- $ARTIFACTORY_HOME/var/log
- If required by policy, use scheduled scans during a maintenance window instead of scanning these paths on every read/write.
- Optionally, exclude the Artifactory Java process from behavioral/heuristic scanning.
To confirm impact, compare Artifactory startup time before and after adding these exclusions. If startup time improves markedly, keep these exclusions in place and tune any scheduled scans accordingly.