關閉 ReportCrash 的原因
自己 MacBook Pro 總是過載,機器很熱。結果通過看進程 top
命令,看到 ReportCrash 佔用了了過高的 CPU,而且好像我用不上。於是乎,得關掉。然後,機器就冷靜多了。
如何關掉 ReportCrash
這個操作會停止 ReportCrash,立竿見影,機器立馬冷靜。而且開機後,不會再次發生這個問題。
launchctl unload -w /System/Library/LaunchAgents/com.apple.ReportCrash.plist
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.ReportCrash.Root.plist
如何重新啓用 ReportCrash
這個操作用是後悔藥。有些有潔癖的同學,可以通過它反悔。
launchctl load -w /System/Library/LaunchAgents/com.apple.ReportCrash.plist
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.ReportCrash.Root.plist
ReportCrash 到底是啥
我也不知道,也沒看。但是你可以通過 terminal
執行命令查看。
man ReportCrash