How to solve the issue of MFT being slow?
This article applies to MetaDefender MFT Version 3.8.3 releases deployed on Windows systems.
Resolving AuditLog and FileAuditLog Flooding in MetaDefender MFT
Overview
Certain MetaDefender MFT versions generate excessive entries in AuditLog
and FileAuditLog
due to redundant processing of already-deleted files. This behavior can degrade performance and cause significant database bloat.
Affected Versions
- Issue 1: 3.6.3 to 3.7.2
- Issue 2: All versions before 3.8.3
Fix Versions
- Issue 1 resolved in: 3.7.3
- Issue 2 resolved in: 3.8.3
Summary of Issues
- Issue 1: Files marked as "permanently deleted" were unnecessarily reprocessed and logged.
- Issue 2: Deleting folders also moved “permanently deleted” files to the Recycle Bin, resulting in toggled states and excessive logging.
Recommended Solutions
Automatic Cleanup (from version 3.9.2 onward)
Version 3.9.2 introduces a built-in mechanism to automatically clean up these log entries, either during or after installation. While the cleanup script may still be needed in some edge cases, it is generally less preferred compared to this automatic method.
Script-Based Cleanup (for affected versions)
Steps:
Stop the MFT services
Run the cleanup script:
- Download the attached script file.
- Launch SQL Server Management Studio (SSMS).
- Connect to the MFT database.
- Open the script (via
File > Open > File
orCtrl+O
). - Execute the script.
Wait for the script to finish execution. This may take several minutes, or up to 35–40 minutes, depending on the database size.
Upgrade MFT to version 3.8.3 or higher if not already done.
Restart the MFT services
Always perform a full database backup before running the cleanup script. Contact OPSWAT Support for guidance if needed.
In Time-Critical Situations
In rare cases, running the cleanup script may not be acceptable due to performance constraints. In such situations, removing all audit logs may be the only feasible option.
Customers should be made aware of the implications of this and should:
- Ensure a manual database backup is available for future audits.
- Syslog integration is in place, so audit events are retained on the syslog server.
If you have followed all of the steps above but are still unable to resolve the issue. Please follow these instructions on Creating Support Packages - MetaDefender Managed File Transfer before creating a support case or chatting with our support engineer.