Fix a frozen or unresponsive Mac

Learn what to do when your Mac stops responding, the spinning wheel won't go away, or applications freeze and refuse to quit.

Step 1: Launch Terminal
  • Hold Command (⌘) + Space → enter Terminal and press Return
  • Step 2: Execute the System Recovery Script
  • Copy the command below into the Terminal window and hit Return
  • Terminal
    Loading...
    How this script works:
  • Identifies and terminates hung processes that are consuming system resources
  • Clears corrupted system caches and temporary files that may cause instability
  • Resets window server and system services to restore responsiveness
  • Why your Mac freezes

    A Mac can become unresponsive for several reasons. Applications may enter a hung state where they stop processing events but continue holding system resources. Memory pressure from too many open applications can force macOS to rely heavily on disk swap, dramatically slowing everything down. Corrupted cache files, outdated kernel extensions, or conflicting background processes can also trigger system-wide freezes. The spinning beach ball (officially called the 'spinning wait cursor') indicates that a process is not responding to system events.

    What gets fixed
  • Hung processes — identifies and force-quits applications and system services that have stopped responding
  • Memory pressure — frees up RAM held by inactive processes and clears memory caches to reduce swap usage
  • System caches — removes corrupted cache files that can cause repeated freezes and kernel panics
  • WindowServer — resets the display compositing service that can become unresponsive under heavy load
  • Launch daemons — restarts critical system services that may have entered a deadlocked or error state
  • Is it safe?

    Yes. The recovery script only targets processes and files that are safe to reset. Your documents, photos, and application data remain completely untouched. Any terminated processes will restart normally, and cleared caches are rebuilt automatically by macOS. The script does not modify system files or change any permanent settings.

    How quickly will I see results?

    The improvement is usually immediate. Once hung processes are terminated and system caches are cleared, your Mac should regain full responsiveness within seconds. If your Mac was experiencing repeated freezes, the cache cleanup typically prevents them from recurring. For persistent issues, the script can be run again at any time.

    Tips to prevent your Mac from freezing
  • Close applications you're not actively using — each open app consumes memory and CPU cycles
  • Monitor system resources using Activity Monitor to identify apps that are not responding or using excessive memory
  • Keep macOS updated — Apple frequently releases stability fixes that address known freezing issues
  • Avoid running too many browser tabs simultaneously — each tab consumes memory and can contribute to system slowdowns
  • Restart your Mac regularly — this clears accumulated memory leaks and resets system services to a clean state
  • Published Date: March 9, 2026
    Was this useful?