Puzzling system delays
Every couple of days my 2015 MacBook Pro running Mojave 10.14.4 goes into a state where it simply pauses for 2-3 seconds. I can be typing and nothing comes out, but then in a couple of seconds everything I typed spits out on screen. I can drag a window and nothing happens, and suddenly the window jumps where I moved it.
A reboot fixes the problem temporarily and it comes back in a day or two.
I tried quitting every open program one by one, then every menubar app. Then I turned off Bluetooth. Then I turned off WiFi. Problem persisted.
According to iStat Menus, there's no system load at all and no network traffic (in KB/s).
I reset the SMC and NVRAM for grins and giggles. The problem returned.
Right now it's only pausing maybe every 5 minutes. Sometimes the pauses are every 30 seconds.
Any idea what this could be and how to diagnose?
Hey @AlexSantos - sorry I never got back to you on your idea of running EtreCheck.
But I MAY have found the culprit. To sum up the situation:
Every few weeks, my Mac hangs intermittently every 20 seconds or less. The only way I've fixed it has been to reboot the Mac. I eliminated all running apps including all menubar apps and shut off the network.
It was suggested that I eliminate everything connected via my CalDigit TS3+ dock but it was so intermittent I couldn't catch it in the act.
Today I was able to remove things from the dock one by one and keep track of the intermittency. I unplugged everything until it was Ethernet to the dock, my LG 5K monitor to the dock via TB3 and my Mac to the dock via TB3. Still happening.
I unplugged the monitor from the dock, and it took a really long time for my MBP to regain the screen, but it eventually worked and there was no lag. It seemed to be the monitor. But as I was bemoaning that the MOST expensive not-under-warranty and irreplaceable component was the cause, @StevenGoetz aka @Goatman suggested it might be the cable!
I was using a convenient 40" long TB3 cable that came with a Belkin dock. I replaced it with the stupid short TB3 cable that came with the CalDigit TS3+, plugged in the monitor to the dock and BOOM, the Mac screen came right up. And the lag appears to be gone!
Too soon to do a full victory lap but I'm doing a small victory jig because it feels like it might be finally solved!