V1.5.5
As the project uptime increases, disk usage continuously grows, raising concerns about which files can be safely cleaned up.
1. Many intermediate system files, which ultimately serve no purpose, are generated without consideration for disk space constraints and tend to accumulate without being automatically removed.
2. Accumulation of such unnecessary files can degrade system performance and may eventually lead to system crashes.
3. You want to keep the disk space used by the project low, but lack clarity on what can be safely deleted.
4. Manual cleanup of logs and other files is time‑consuming. You require automatic cleanup mechanisms to reduce O&M time.
FineOps provides a Resource Cleanup function, enabling you to safely and conveniently free up disk space, which can prevent the loss of business files caused by accidental deletion and crashes caused by disk issues.
1. It allows you to perform disk cleanup with efficient recommendations for removable files.
2. You can set automatic cleanup logic for some files.
3. The disk can be efficiently cleaned up to save disk resources and prevent disk crashes.
This section focuses on the manual cleanup function. For details about automatic cleanup, see Disk Cleanup.
The following table lists the disk cleanup content and logic.
1. File path:
The default path is Application installation directory\webapps\webroot\backup.
If the backup folder resides in a custom path, the system will scan the custom path.
2. Purpose:
It stores project backups.
3. Cleanup risk level:
High (caution required)
The displayed files in this path have date-stamped names. You can select and clean files of the required dates.
You are advised to clean up the files older than three months.
Files within the last three months are not displayed.
Application installation directory\webapps\webroot\WEB-INF\schedule
It stores intermediate files generated by scheduled tasks.
3. Cleanable scope:
The system only displays files older than 12 months for cleanup.
4. Cleanup risk level:
Low (cleanup recommended)
You are advised to clean up the files older than 12 months.
Files within the last 12 months are not displayed.
Application installation directory\webapps\webroot\WEB-INF\assets\vcs
It stores version management files.
The system only displays files older than 30 days for cleanup.
All historical version files older than 30 days are stored in one folder for easy selection and cleanup.
You are advised to clean up the files older than 30 days.
Files within the last 30 days are not displayed.
Application installation directory\webapps\webroot\WEB-INF\treasures
It stores packages of cloud O&M logs.
Application installation directory\logs\fanruan.log
It is the operation log of the FanRuan application.
The system scans for exported dump files that were not cleaned up in time.
Dump file
You are advised to clean up the files older than one week.
Files within the last week are not displayed.
Tomcat installation directory\logs\Catalina.log
Tomcat operation log
4. Notes
If the log is not configured to roll in Tomcat, do not clean it up.
Tomcat installation directory\logs\Catalina.out
The standard output and error log of Tomcat
If the file does not exist on the Windows system, do not clean it up.
Manual cleanup only applies to the selected O&M project.
Log in to FineOps as the admin, and click the project that requires disk maintenance. Choose Business Tool > Resource Cleanup.
Select the files/folders to be scanned, and click Start Scanning to immediately start scanning for redundant files eligible for manual cleanup, as shown in the following figure.
During the scanning, clicking Stop Scanning will end the scanning process and return the redundant files that have already been identified.
After the scanning is complete:
1. You will be informed of the total size of cleanable files.
2. You can expand the tree structure to view cleanable files.
3. You can view the size of each file.
4. You can click Rescan to rescan cleanable files.
On the scanning completion page, select the disk file to be cleaned up, and click Clean Now. The following prompt will pop up: "The selected file and data will be permanently cleaned up and cannot be restored."
Click Confirm to immediately clean up the selected disk files.
During the cleanup, if you click Stop Cleanup, the cleanup will be interrupted, and the cleaned file cannot be restored, as shown in the following figure.
Once the cleanup is completed, the following message will be displayed: "The cleanup is complete. The size of the file cleaned this time is XXX."