場景:早上剛到公司zabbix監控報警,一個前幾天剛給開發安裝了gnome桌面的服務器磁盤報警,排查發現
-rw-r--r--. 1 root root 69G Apr 29 09:00 /root/.cache/tracker/meta.db-wal
這個目錄佔用了69G,這臺服務器也沒有需要數據存儲的需求,查看進程發現大量tracker-*開頭的進程大量佔用系統資源。
解決辦法:
Tracker is used (by gnome) to index files to make them searchable and appear automatically in some programs
(like Rhythmbox for music files, etc). More info from the Ubuntu wiki on it here https://wiki.ubuntu.com/Tracker.
You can do a hard reset of the tags database and restart all the tracker processes with this command:
tracker reset -r # 這會像跟蹤程序守護進程kill那樣殺死所有進程,但它也會刪除所有進程數據庫。重新啓動跟蹤器存儲將重新創建數據庫。
Use
tracker daemon -t # 停止tracker所有進程
to terminate and