loginwindow on Mac: what it is and why it uses CPU
loginwindow is the process that shows the login screen and then owns your session for as long as you are signed in. It starts the Dock, Finder and your login items, handles the Force Quit window, logout, restart and shut down, and keeps your session alive. It is nearly idle most of the time. When it shows high CPU, it is almost always because the work of your session (login items launching, a stuck app being relaunched, a screen saver or lock screen) is counted under its name. Never quit it: ending loginwindow logs you out and closes everything.
- Verdict
- Leave it. Quitting it ends your session and closes every app.
- Normal CPU
- 0 percent, brief bumps at login, lock, unlock and logout
- Normal memory
- 30 to 150 MB
- Common cause
- Login items starting, the lock screen or screen saver, an app that keeps relaunching
- Runs
- One per logged-in user, plus one for the login screen itself
What loginwindow does
After the kernel and launchd, loginwindow is the next thing a Mac needs to become usable. It draws the login screen, checks your password or Touch ID against the directory service, and then becomes the owner of your session. In that role it launches the Dock, Finder, SystemUIServer and your login items, restores the windows from your last session if you asked for that, tracks which apps are running so it can relaunch the ones that should always be there, and handles the lock screen, the screen saver, Fast User Switching, and the logout, restart and shut down sequence. The Force Quit window you get with Command-Option-Escape is loginwindow's too.
Howard Oakley's write-up at The Eclectic Light Company puts it well: its obvious task is the login window, but it persists until the Mac shuts down, because the session is its job, not the window. There is one loginwindow per signed-in user and another one, running as root, that waits behind the login screen.
What normal looks like
Why loginwindow is using CPU right now
loginwindow rarely does heavy work of its own. High CPU under its name usually means it is being made to do something repeatedly.
- You just logged in. The first minute or two after login is loginwindow launching the Dock, Finder, login items and any apps restored from last time. On a Mac with many login items this is a real burst. It ends on its own.
- An app keeps crashing and being relaunched. loginwindow is responsible for relaunching some session apps when they die. If one of them crashes on launch, it goes round in a loop, and the loop shows up as loginwindow CPU. The Console app's Crash Reports list tells you which app.
- A broken login item or helper. An old utility that fails to start, asks for permission, fails again. System Settings, General, Login Items & Extensions is the list to check.
- The screen saver or lock screen. Some screen savers are expensive to draw, and loginwindow hosts them. If CPU is high only while the Mac is locked, that is the saver.
- A stuck logout or user switch. If you started a logout and an app refused to quit, loginwindow may be waiting and retrying. Finish or cancel the logout.
- A bad state after a macOS update. The Apple Community thread quoted below was a Catalina user with 99 percent loginwindow and constant fans. A restart and an update were the answer then, and still are.
Is it safe to quit loginwindow?
No. This is the one process in this list where Force Quit has the biggest immediate consequence. loginwindow owns your session. End it, from Activity Monitor or any other way, and macOS ends the session with it: every app closes without saving, every window disappears, and you are back at the login screen. It is equivalent to a forced logout. Apple knows this, which is why Activity Monitor asks for confirmation and why Terminal needs administrator rights to touch it. There is no troubleshooting value in it either. If you want a clean session, use the Apple menu, Log Out, which gives apps a chance to save.
Use the checker above for the processes that loginwindow starts, because they are usually the real source of a busy session: Dock, Finder, SystemUIServer, and whatever sits in your Login Items.
What to do, in order
- Wait two minutes after login
If you just signed in, the burst is normal. Make a coffee. If loginwindow is back at zero when you return, there was never a problem.
- Look for an app that keeps relaunching
Watch the Dock for an icon that appears, disappears and appears again. Open Console, click Crash Reports in the sidebar, and look for the same app name repeating with recent timestamps. Quit it, or remove it from Login Items.
- Trim Login Items
System Settings, General, Login Items & Extensions. Remove anything you do not recognize or no longer use, and switch off background items from apps you have uninstalled. Then log out and back in to see the difference.
- Change the screen saver
If CPU is high only while locked, System Settings, Screen Saver: pick a simple one, or set the display to turn off instead of running a saver.
- Log out and back in
Apple menu, Log Out. This ends the session cleanly and gives you a fresh loginwindow with your login items started from scratch. Most stuck sessions are fixed here.
- Restart, then update macOS
A restart resets the root loginwindow as well as yours. If the problem began after an update, Software Update is where the fix will arrive. Safe mode (hold Shift at startup on Intel, or choose it from the startup options on Apple silicon) starts a session with no login items, which confirms whether one of them is the cause.
When to worry
Worry when loginwindow stays above 90 percent after a fresh login with no login items running, and safe mode shows the same thing. That is rare, and it points to macOS itself, which a Software Update or a reinstall over the top (which keeps your files) addresses. Worry a little if loginwindow's memory grows past a gigabyte and keeps growing; an old MacRumors report described five gigabytes, and a logout cleared it. Do not worry about the login burst, the lock screen, or a spike when you switch users. Those are loginwindow doing what it exists for, and the number falls as soon as the task ends.
Safe to Quit, the Mac app behind this guide, marks loginwindow as one to leave alone and tells you what the processes under it are doing instead, so you do not force quit the one thing that would end your session.
- 1loginwindow high
- 2Just logged in? Wait two minutes
- 3Still high? Check Console for a relaunching app
- 4Nothing crashing? Trim Login Items and log out
- 5Still high in safe mode? Update macOS
What people hit, in their words
“My fans constantly running and when I open up activity monitor, the top user of CPU is a process called loginwindow?”
“My understanding is that its a all the processes that open up when i login into my MacBook?”
“Its most obvious task is to prepare, display, handle and destroy the user login window.”
Questions people ask
What to do if you cannot log into your MacBook?
Restart and try again, checking Caps Lock and the keyboard layout. If the password is rejected, click the question mark in the password field to reset it with your Apple ID, or use the recovery key if FileVault is on. If the login screen never appears or the Mac hangs on the progress bar, start in safe mode (Shift at startup on Intel, or the startup options screen on Apple silicon) and update macOS from there.
How do I see login activity on my Mac?
Open Console and search for loginwindow to see login, lock and logout events with timestamps. For a simpler view, System Settings, Users & Groups shows the accounts, and the Terminal command last lists recent logins by user and time. None of these need administrator rights to read.
Why is WindowServer taking so much CPU alongside loginwindow?
They are partners. loginwindow owns the session; WindowServer draws everything in it. At login, lock and unlock both spike briefly. If WindowServer stays high while you work, the cause is usually a display or an app redrawing constantly, not loginwindow. See the WindowServer page for that fix order.
Why are there two loginwindow processes?
One runs as root and belongs to the login screen itself; it is there before anyone signs in and stays in case someone else logs in via Fast User Switching. The other runs as you and owns your session. If several people are signed in, each has their own. All of them are normal and none should be quit.
Does loginwindow use memory when the Mac is locked?
A little more than usual, because it is drawing the lock screen and possibly the screen saver. A hundred or two hundred megabytes is normal. It drops back when you unlock. Growth into gigabytes over days is unusual and a logout resets it.
Sources and further reading
- loginwindow does more than log you in (The Eclectic Light Company) Howard Oakley's explanation of everything loginwindow does after you sign in.
- loginwindow is using 99% of my CPU and constantly running my fan? (Apple Community) The quoted thread.
- Apple Support: Change Login Items & Extensions settings on Mac Where to trim login items.
- Apple Support: Start up your Mac in safe mode The safe mode test used in the fix order.