Mac 系统休眠之后,再唤醒,还是卡顿的无法使用。
看了活动监视器,launchd 在重启之后产生了大量的磁盘 IO。
这非常不正常。
猜测 launchd 是在写入系统日志,所以造成了大量的磁盘写入。
$ tail -F /var/log/system.log
Aug 4 18:26:21 Sun-Zhongweis-MacBook-Pro com.apple.xpc.launchd[1] (com.alipay.DispatcherService[1074]): Service exited due to signal: Illegal instruction: 4 sent by exc handler[0]
Aug 4 18:26:21 Sun-Zhongweis-MacBook-Pro com.apple.xpc.launchd[1] (com.alipay.DispatcherService): Service only ran for 2 seconds. Pushing respawn out by 8 seconds.
Aug 4 18:26:21 Sun-Zhongweis-MacBook-Pro com.apple.xpc.launchd[1]: Host-level exception raised: pid = 1074, thread = 0x8371b, exception type = 0xd, codes = { 8589934596 }, states = { 0 }
...
Aug 4 18:33:37 Sun-Zhongweis-MacBook-Pro com.apple.xpc.launchd[1] (com.alipay.DispatcherService[1162]): Service exited due to signal: Illegal instruction: 4 sent by exc handler[0]
Aug 4 18:33:37 Sun-Zhongweis-MacBook-Pro com.apple.xpc.launchd[1] (com.alipay.DispatcherService): Service only ran for 2 seconds. Pushing respawn out by 8 seconds.
Aug 4 18:33:37 Sun-Zhongweis-MacBook-Pro com.apple.xpc.launchd[1]: Host-level exception raised: pid = 1162, thread = 0x86c5b, exception type = 0xd, codes = { 8589934596 }, states = { 0 }
果然,日志在不断产生。
com.alipay.DispatcherService 是什么
我确信已经删除了所有 Mac 上的阿里系应用,怎么还在不断报错。。。
执行
sudo launchctl unload /Library/LaunchDaemons/com.alipay.DispatcherService.plist
再次查看 system.log 已经没有新的错误日志产生了。
之前在 处理 ReportCrash 问题 时,禁用过该进程,看来并没有根除。
以防万一,删除支付宝的残留
sudo rm -rf /Library/LaunchDaemons/com.alipay.DispatcherService.plist
微信关注我哦 👍
我是来自山东烟台的一名开发者,有感兴趣的话题,或者软件开发需求,欢迎加微信 zhongwei 聊聊, 查看更多联系方式