Macbook Pro keeps randomly freezing for a few seconds, many times per hour, dozens of times per day.

Some background: I'm a long time professional software developer who (unfortunately?) spends many uninterrupted hours on my laptop per day, so I have a great sense of its "normal" and "unusual" behaviors, and a better-than-average understanding of what might be going on under the hood.


Numerous Google Search results are similar to post, including this 5 year old thread which seems unresolved:


Screen freezes for a few seconds - Apple Community


To recap and concur from the post above:

  1. It does not seem to have any repeatable cause
  2. It's not related to high CPU or process counts
  3. Audio continues uninterrupted, but all keyboard and drawing events are frozen for 2-3 seconds.
  4. Combining 2 and 3 above... I've tried keeping an Activity Monitor visible for long periods of time, to hopefully catch some errant process "in the act" while the system has frozen, and unfortunately, the Monitor itself fails to redraw/update during the frozen period, so I've never noticed any pattern to the before/after-freeze episodes.


I've wondered if the problem can be made worse by having multiple Chrome tabs open with "busy" web applications like LinkedIn or Twitter, but to point #2 above, this doesn't seem to matter. The problem literally just occurred as I was typing this (couldn't reposition the cursor with the mouse for a few seconds)!


My hardware:



macOS is Ventura 13.4.1 (c)


I've noticed DisplayLinkUserAgent and DisplayLinkManager taking relatively high CPU, like this:

but I don't know what's causing those two processes to do that.


I have a large external monitor, and thought that might be the root cause, but the problem exists even without the monitor.


I've experienced this for several past operating systems as well (have always hoped that an upgrade would fix it!).


Any insights from anyone -- especially any Apple engineers -- would be greatly appreciated. Happy to capture and post any other system and/or log details that would be helpful to anyone.


Thanks,

-Dean

MacBook Pro 16″, macOS 13.4

Posted on Oct 18, 2023 8:12 AM

Reply

Similar questions

5 replies

Nov 30, 2023 4:01 PM in response to dzarras

Google Chrome has been know to be a big resource hog. Uninstall it according to the developer's instructions and run for a bit to see if the problem persists. Chrome also does a data mining for selling to online vendors.


If you don't like Safari give Firefox or Brave a try.


Have you installed and run any "cleaning", "optimizing", "speed-up", anti-virus or VPN apps on your Mac?


Give this a try: boot into Safe Mode according to How to use safe mode on your Mac and test to see if the problem persists. Reboot normally and test again.


NOTE 1: Safe Mode boot can take up to 3 - 5 minutes as it's doing the following; 

• Verifies your startup disk and attempts to repair directory issues, if needed

• Loads only required kernel extensions (prevents 3rd party kernel/extensions from loading)

• Prevents Startup Items and Login Items from opening automatically

• Disables user-installed fonts 

• Deletes font caches, kernel cache, and other system cache files


NOTE 2: if you have a wireless keyboard with rechargeable batteries connect it with its charging cable before booting into Safe Mode. This makes it act as a wired keyboard as will insure a successful boot into Safe Mode.


Dec 1, 2023 12:36 PM in response to dzarras

While you have a lot of memory installed in your laptop, you may want to check the Memory tab of Activity Monitor to see if the Memory Pressure graph is yellow or red. Even if the Memory Pressure is green, then check whether the "Swap" or "Compressed" is showing as GBs....sometimes my Mac's memory pressure is green, but these two values can be in the multiple GB range and causing me performance issues.


As @leroydouglas mentions, Chromium based browsers are notorious for causing performance issues, not just in the browser itself, but the system in general especially if you have lots of browser windows/tabs open. Have you tried quitting Chrome and relaunching Chrome to see if that helps? Also, try deleting the Chrome cache (see if there is such an option within the app itself....I use Vivaldi, also a Chromium based browser, and this can help, while other times I must also delete the "Storage" associated with Vivaldi...all done within the browser). These things usually help for a while at least, but I do tend to have lots of browser windows/tabs open.


Try running the Apple Diagnostics to see if any hardware issues are detected.


Try disconnecting all external devices in case one of them is causing a problem.

Dec 1, 2023 1:25 PM in response to dzarras

Macs that have been altered by installing Google will exhibit that behavior. It can be difficult to correlate because Google's many system-altering and self-updating components will do so unpredictably and on Google's own schedule. Even leaving Activity Monitor open and running may not help, because if they cause the Mac to freeze momentarily Activity Monitor will be unable to refresh itself during that time.


As much of a resource hog as it is, the problem is not Chrome per se. It's Google. You cannot install Chrome without installing Google. Merely quitting the Chrome app has no effect on what Google does to a Mac. If you prefer to use a Chromium based browser, then there are several alternatives that do not require that you install Google.


EtreCheck may help to provide additional information. How to use the Add Text Feature When Posting Large Amounts of Text, i.e. an Etrecheck Report - Apple Community describes how to post its report in a reply to this Discussion.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Macbook Pro keeps randomly freezing for a few seconds, many times per hour, dozens of times per day.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.