baldmountain

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?

Where Next?

Popular in Questions Top

PeterCarter
There are pre-rolled solutions for other frameworks that do work. However, Phoenix does not seem to have these. Have people had good expe...
New
Lily
In templates/appointment/index.html.eex: <%= for appointment <- @appointments do %> <tr> <td><%= appoi...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
marius95
Hello everyone, I try to use an Javascript Event Handler in my root.html.leex file. Therefore I created a function in the app.js file: ...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New

Other popular topics Top

vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New

We're in Beta

About us Mission Statement