baldmountain
MacOS /usr/libexec/lsd using 100% CPU
My Mac has been freezing lately so I spent some time trying to figure out why. There is a system process called LaunchServiceDaemon or /usr/libexec/lsd. It was using 100% CPU. Using information from this thread: What is the “lsd” process… and this one: /usr/libexec/lsd using 100% of CPU I found that lsd was trying to create a signature for apps in my Elixir projects. (I think because the names end in .app.) So lsd was trying to create signing signatures for hackney.app and mint.app. Once I deleted the _bulid directory from my elixir projects my Mac stopped freezing and CPU usage went to zero. You can check your own Mac like:
ps aux | grep lsd
look for the line with runAsRoot in it and find it’s PID then run:
sudo lsof -p PID
And look for a line includes an .app file in one of your projects like:
lsd 386 root 3r REG 1,13 2686 77125471 /Users/someone/work/a_project/_build/prod/lib/tesla/ebin/tesla.app
So my question is how do I keep lsd from trying to create a signature for my elixir generated app files?
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex









