/var/log
file system shows as 100% used./var/log/
files system in are:.hprof
) files:
OutOfMemory
exception based upon configuration and system usage which will dump an hprof
file to disk. This can subsequently cause a full drive.1. Identify Large Log Files:
/var/log:
du -sh /var/log/* | sort -rh | head -20
2. Clear or Compress Large Log Files:
sudo rm -f /var/log/<logfile>.gz
sudo truncate -s 0 /var/log/<logfile>
3. Use Log Rotation:
logrotate
. Check the configuration in /etc/logrotate.conf
or /etc/logrotate.d/
. If necessary, manually trigger log rotation:sudo logrotate -f /etc/logrotate.conf
4. Examine Specific VMware Logs:
du -sh /var/log/vmware/* | sort -rh | head -20
/var/log/vmware/vco/
Clean unnecessary logs from there.5. Remove Old Core Dumps or Unused Packages:
sudo find /var/crash -type f -exec rm -f {} \;
sudo apt-get clean # For Ubuntu-based systems
sudo yum clean all # For RHEL/CentOS-based systems
6. Check for Orphaned Docker Images (Optional):
docker system prune -a
7. Delete /service-logs/prelude/vco-app/file-logs/vco.hprof
heap dump files and write a script file to delete the vco.hprof
files periodically.
hprof
files on the system to be removed.