When running Java Application servers such as TomCat or Jboss you may encounter latency or performance issues. The application service may hang when starting or fail to start.
First seen in
Sophos Anti-Virus for Linux 9.1.2
Sophos Anti-Virus for Linux 7.6.0
Performance issues with Java applications are often caused by the scanning of archive files. Typically .JAR archives contain many java class files. The .JAR file cannot be accessed until the On-Access scanner has unpacked and scanned the complete contents.
What To Do
Scanning inside archives is disabled by default and not recommended for on-access scanning. The feature can be disabled via Sophos Enterprise Console (managed installations) or by running:
/opt/sophos-av/bin/savconfig set ScanArchives false
It is not usually necessary to perform on-access scans of archive files, because files within the archive will be scanned the moment they are extracted or executed.
Alternatively, you may be able to improve performance by excluding common .JAR files associated with the JRE or your application.