Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

h9826790

macrumors P6
Original poster
Apr 3, 2014
16,614
8,546
Hong Kong
Is there anyone seen this before?

lsd (Launch Service Deamon) keep chewing up memory. I just recognise this 2-3 weeks ago. Not 100% when this started.

Reported to Apple with sysdiagnosis etc but no reply yet (anyway, it seems no more bugreport.com, it redirect me the feedback assistant, which I doubt anyone will look at the case).

Today, lsd go up to almost 25GB memory usage in less than 3 hours after cold boot. The memory pressure still reasonably low (most likely because I have 48GB of RAM), SWAP still zero, but have few GB compressed memory already.
Screenshot 2019-07-04 at 4.59.02 PM.png


Any idea how / where to find out the issue? Million thanks in advance.
 
Last edited:

h9826790

macrumors P6
Original poster
Apr 3, 2014
16,614
8,546
Hong Kong
Problem fixed.

Just three steps.

1) create a folder for Launch Service Daemon to store database.
Code:
sudo mkdir /private/var/db/lsd

2) Kill the old database and create a new one
Code:
sudo /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -seed -lint -r -f -v -dump -domain local -domain system -domain user -domain network

Screenshot 2019-07-06 at 12.39.16 AM.png


3) Reboot, or simply quit the lsd (root) in Activity Monitor

Update:
For those who has multiple boot drive. I found that this bug also related to those duplicate / extra apps stored in other drives. So, before step 1. It's better to put all other boot drives in the System Preferences -> Spotlight -> Privacy section.
Screenshot 2019-07-12 at 3.03.41 PM.png
 
Last edited:
  • Like
Reactions: MIKX and s15119
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.