Mac에서 사용량이 많은 프로세스를 비활성화합니다.

3795 단어
저녁에terminal에서 코드를 두드렸는데 시스템이 이상하게 끊긴 것을 발견하였다.Activity Monitor에서 ReportCrash 프로세스가 CPU를 많이 사용하는 것을 발견했습니다.
끊임없이 붕괴 보고서를 보내는 것은 끊임없이 프로세스가 붕괴되고 있다는 것을 설명한다. 먼저 시스템 로그를 보자.
$ tail -F /var/log/system.log

Feb  5 21:09:01 Sun-Zhongweis-MacBook-Pro com.apple.xpc.launchd[1] (com.alipay.DispatcherService[11484]): Service exited due to signal: Trace/BPT trap: 5 sent by exc handler[0]
Feb  5 21:09:01 Sun-Zhongweis-MacBook-Pro com.apple.xpc.launchd[1] (com.alipay.DispatcherService): Service only ran for 2 seconds. Pushing respawn out by 8 seconds.
Feb  5 21:09:09 Sun-Zhongweis-MacBook-Pro com.apple.xpc.launchd[1] (com.apple.nowplayingtouchui): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Feb  5 21:09:11 Sun-Zhongweis-MacBook-Pro com.apple.xpc.launchd[1] (com.alipay.DispatcherService[11486]): Service exited due to signal: Trace/BPT trap: 5 sent by exc handler[0]
Feb  5 21:09:11 Sun-Zhongweis-MacBook-Pro com.apple.xpc.launchd[1] (com.alipay.DispatcherService): Service only ran for 2 seconds. Pushing respawn out by 8 seconds.
Feb  5 21:09:11 Sun-Zhongweis-MacBook-Pro com.apple.xpc.launchd[1] (com.apple.ReportCrash.Root[11487]): Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.ReportCrash.DirectoryService
Feb  5 21:09:11 Sun-Zhongweis-MacBook-Pro ReportCrash[11487]: assertion failed: 16D32: libsystem_trace.dylib + 76912 [6D34D1EA-2A3C-3D2D-803E-A666E6AEEE52]: 0x0
Feb  5 21:09:19 --- last message repeated 6 times ---
Feb  5 21:09:19 Sun-Zhongweis-MacBook-Pro com.apple.xpc.launchd[1] (com.apple.nowplayingtouchui): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Feb  5 21:09:21 Sun-Zhongweis-MacBook-Pro com.apple.xpc.launchd[1] (com.alipay.DispatcherService[11489]): Service exited due to signal: Trace/BPT trap: 5 sent by exc handler[0]
Feb  5 21:09: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.

오 마이 갓, 몇 초마다com.alipay.DispatcherService, com.apple.이 두 요괴를 한 번만 탓해라.너무 끊겨서 이 두 가지 의심스러운 과정을 조사하지 않고 리포트 크로스를 먼저 해결하겠습니다.

ReportCrash 비활성화


시스템 설정을 수정하지 않으면 프로세스가 자동으로 터치될 수 있다는 것을 이름에서 알 수 있을 것이다.
Google은 간단합니다. terminal에서 실행됩니다.
launchctl unload -w /System/Library/LaunchAgents/com.apple.ReportCrash.plist
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.ReportCrash.Root.plist

Activity Monitor를 살펴보면 ReportCrash 프로세스가 더 이상 나타나지 않는다는 것을 알 수 있습니다.시스템이 다시 실처럼 매끄러운 상태를 회복하였다.
다시 쓰는 방법(난 평생 이 물건을 가동하지 않을 것 같아)
launchctl load -w /System/Library/LaunchAgents/com.apple.ReportCrash.plist
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.ReportCrash.Root.plist

com.alipay.Dispatcher Service는 마운 아빠가 낳은 알이 뭐예요?


알리가 결제 플러그인에 새로운 버전이 있는지 확인하기 위해 백엔드 프로세스를 사용하고 있다는 사실이 알려졌고, 수목에는 알리가 몰래 사용자의 프라이버시를 수집하고 있다는 오래된 게시물이 올라왔다.물론 나는 두 번째 견해가 더 믿을 만하다고 생각한다.새 버전이 있는지 검사할 때 다시 검사하면 안 돼요?
사용 안 함 메서드
sudo launchctl unload /Library/LaunchDaemons/com.alipay.DispatcherService.plist 

시스템을 다시 봅니다.log에서 알리페이 관련 로그가 더 이상 나타나지 않습니다.설명이 비활성화되었습니다.
만일을 대비하여 컴퓨터에 있는 아리의 모든 소프트웨어를 제거했다(아리왕왕만 있지만)

com.apple.nowplaying touchui는 touch bar와 관련이 있습니까?


Google에서 사용할 수 없는 방법
launchctl unload -w /System/Library/LaunchAgents/com.apple.touchbar.agent.plist 

명령으로 보아 터치바와 관련이 있는 것 같지만, 내 낡은 기계에는 터치바가 없다..
Duang, SIP 가 내 작업을 차단
/System/Library/LaunchAgents/com.apple.touchbar.agent.plist: Operation not permitted while System Integrity Protection is engaged
나는 항복했다. 나는 여전히 SIP를 비활성화할 수 없다. 이것은 이렇게 하자. 곧 시스템 업데이트에 의해 복구될 것이다
시스템 버전 10.12.3

좋은 웹페이지 즐겨찾기