Just bought a new Mac and operating system lag and slow? Perhaps you encountered a very common problem is a memory leak in macOS. For some users the process that is responsible for working with music, audio, photo and video, and GarageBand in the Finder occupies the entire available RAM.
As a result of the bug the process com.apple.MediaLibraryService macOS is out of control and consumes all available memory. The appetites of the service depend on the size of your music library. Some users have reported a memory leak back in 2014 after the release of the new version of Pages and Numbers.
The problem can be solved in the following way:
Most likely, this will solve your problem, but when restarting the Mac it can appear again. To avoid this, follow the instructions below:
Now macOS can’t use plugins for which there is a memory leak. If after disabling, you can not use some functions, try to include the plugin separately.