How to Force Applications and Processes to Quit on OS X

how-to-force-applications-and-processes-to-quit-on-os-x photo 1

If you’ve ever been using your Mac and had an application hang (Spinning Beachball of Death anyone?), you know how annoying it is. One stuck app can bring your system to a crawl, but it’s well within your power to do something about it.

Normally, most applications run fairly well on OS X and the spinning beachball or pinwheel doesn’t factor in, or only makes a brief appearance before the system sorts itself. But every now and then, an application freezes or can’t handle the task(s) you’ve assigned it and the result is the much-loathed animated cursor.

how-to-force-applications-and-processes-to-quit-on-os-x photo 2

Haters gonna wait!

If this occurs and it doesn’t seem like it’s going to resolve itself on its own, it may be time to take action. There’s actually quite a few ways to do this but several are just minor variations on the Force Quit method. Today we’re going to show you three, any of which should do the trick.

Remember, forcing an application to quit should be a solution of last resort. Forcing an application to quit will cause you to lose any unsaved work. While this won’t matter much with some apps, if you’re writing a document or editing an image, it could mean lost time and productivity.

Getting Your System Unstuck

Windows users know full well the power of the Task Manager. With it, they can easily and quickly select a stuck application or process, click “End Task,” and be done with it.

how-to-force-applications-and-processes-to-quit-on-os-x photo 3

On OS X, users can stop stuck applications with the Force Quit window, which can be accessed from the Apple menu and then clicking “Force Quit…” or using the keyboard combo “Command + Option + Escape.”

When everything is okay, all your running apps will appear normal.

how-to-force-applications-and-processes-to-quit-on-os-x photo 4

Looking good, for now …

When an application hangs, however, it will turn red and “(not responding)” will appear next to it. You can wait to see if the application starts responding again, or you can click the troublesome item and then click the “Force Quit” button.

how-to-force-applications-and-processes-to-quit-on-os-x photo 5

The Force Quit window is the easiest way to take care of a troublesome application in short order. You can also relaunch the Finder if that too bogs down for some reason. Alternatively, if you know which app is giving you fits, hold “Control + Option” and right-click on the app’s Dock icon, then choose “Force Quit” from the resulting menu.

how-to-force-applications-and-processes-to-quit-on-os-x photo 6

What if your system is so stuck that it won’t respond quickly enough to perform these actions? In that case, you might want to try using the keyboard combination “Command + Option + Shift + Escape.” Hold this combination for three seconds, and it will force the foremost application to quit.

The Activity Monitor

OS X’s Activity Monitor is similar in many ways to Windows’ Task Manager. It divides system activity up into five categories (Windows shows four), which you can sort into columns to see what applications and processes are doing what. So, if you want to know which apps are gouging you for RAM, you can check out the “Memory” category. Similarly, if you’re not getting the battery life you’re expecting, you can see what your energy hogs are.

For our purposes, we can see that our troublesome app TextEdit is hung up and not responding. Of course, something may not always show “Not Responding.” If it seems your system is staggering and stumbling along, you can still diagnose the cause of your troubles using the Activity Monitor by checking your CPU and Memory usage.

how-to-force-applications-and-processes-to-quit-on-os-x photo 7

In our specific case, it’s easy to see what the problem is and so we click the black “X” in the toolbar. The resulting dialog will ask you if you want to Quit or Force Quit. Click “Force Quit” because the application will just continue to hang if you try to simply quit it.

how-to-force-applications-and-processes-to-quit-on-os-x photo 8

No further confirmation dialog pops up to make sure you know what you’re doing. Like we said, if you force quit anything, you’ll lose any progress or unsaved work.

Using a Command Line

Okay, so the first two options we’ve shown you are pretty powerful ways to quit stuck items, but there is another. You can open the Terminal and use the command line to gracefully quit any app or process. If you already use the command line, then you probably already know all this, but if you don’t or if you’re the least bit curious, then this may interest you.

The “top” command is our go-to tool. There’s many ways to use top but for our purposes, we add the -o flag, which lets us sort the readout by memory, CPU, and other categories.

To sort by CPU usage, type “top -o cpu”.

how-to-force-applications-and-processes-to-quit-on-os-x photo 9

On the resulting screen, you see all our running processes sorted by CPU-use percentage.

how-to-force-applications-and-processes-to-quit-on-os-x photo 10

Similarly, you can sort by memory using the command “top -o rsize”.

how-to-force-applications-and-processes-to-quit-on-os-x photo 11

Notice how once again, the readout is sorted in descending order by memory usage, so you can get a clear picture of what’s gobbling up RAM on your system.

For the sake of completeness, we’re going to once again target our original problem app TextEdit. In this example, we make note of the PID or Process ID, which is a numerical identifier the system assigned to it. The PID is unique, so if you fire up TextEdit at another time, it will be different. In this case, we make note of its PID – 39630 – and then hit the “Q” key to quit top.

how-to-force-applications-and-processes-to-quit-on-os-x photo 12

We return to our command line and type “kill 39630” and the hit “Enter.”

how-to-force-applications-and-processes-to-quit-on-os-x photo 13

If you successfully kill a process, there won’t be any kind of confirmation or fanfare, the terminal will simply await another command. If you run the top command once again, you’ll see that TextEdit (or whatever process you killed) will be gone.

The command line method is probably a little overkill for the purposes of day-to-day use. The Force Quit method and Activity Monitor are likely more than enough for most users but top and kill is still a cool method to have in your back pocket.

Those are the basic ways to handle stuck applications on OS X. Let’s now hear from you. Did you find this article useful? Have any comments or questions to add? Please sound off in our discussion forum and make your voice heard.

More stories

How to Reload Windows 8.1 on Your Surface Pro Tablet

If you upgraded your Surface Pro tablet to the Windows 10 preview and everything broke, or you just need to completely reinstall the thing, today we’re going to show you how to reload Windows with a recovery USB.

How do You Disable the TrackPoint Mouse Button on a Dell Laptop?

Depending on your activities and its level of sensitivity, a TrackPoint Mouse Button can be very helpful or very irritating. So how do you disable it if it is constantly causing you problems? Today’s SuperUser Q&A post has the answers to a frustrated reader’s question.

How to Create Custom Dock Themes in OS X

A while back we showed you how to customize your OS X Dock with themes and other kinds of changes with a small, free program. Today we want to take that a step further and create unique custom themes using that same application.