如何使用 Firefox 任务管理器
Firefox
![](/data/attachment/album/202010/11/103209cc1l7ktc7asacjhe.jpg)



> 
> 查找并杀死占用内存和 CPU 的标签页和扩展程序
> 
> 
> 


Firefox 在 Linux 用户中很受欢迎。它是几个 Linux 发行版上的默认 Web 浏览器。


在它所提供的许多功能之中，Firefox 也提供了一个自己的任务管理器。


不过，在 Linux 中既然你有[任务管理器](https://itsfoss.com/task-manager-linux/)这种形式的[系统监控工具](https://itsfoss.com/linux-system-monitoring-tools/)，为什么还要使用 Firefox 的呢？这里有个很好的理由。


假设你的系统占用了太多的内存或 CPU。如果你使用 `top` 或其他一些系统[资源监控工具，如 Glances](https://itsfoss.com/glances/)，你会发现这些工具无法区分是哪个打开的标签或扩展占用了资源。


通常情况下，每个 Firefox 标签页都显示为 “<ruby> Web 内容 <rt>  Web Content </rt></ruby>”。你可以看到是某个 Firefox 进程导致了这个问题，但这无法准确判断是哪个标签页或扩展。


这时你可以使用 Firefox 任务管理器。让我来告诉你怎么做！


### Firefox 任务管理器


有了 Firefox 任务管理器，你就可以列出所有消耗系统资源的标签页、跟踪器和附加组件。


![](/data/attachment/album/202010/11/103226s7lszsyi5mzc8cgh.png)


正如你在上面的截图中所看到的，你会看到标签页的名称、类型（标签或附加组件）、能源影响和消耗的内存。


其它的都不言自明，但\*\*“能源影响”指的是 CPU 的使用\*\*，如果你使用的是笔记本电脑，它是一个很好的指标，可以告诉你什么东西会更快耗尽电池电量。


#### 在 Firefox 中访问任务管理器


令人意外的是，任务管理器没有 [Firefox 键盘快捷键](https://itsfoss.com/firefox-keyboard-shortcuts/)。


要快速启动 Firefox 任务管理器，可以在地址栏中输入 `about:performance`，如下图所示。


![Quickly access task manager in Firefox](/data/attachment/album/202010/11/103230bsuoppv6o390kfo9.jpg)


另外，你也可以点击“菜单”图标，然后进入“更多”选项，如下截图所示。


![Accessing task manager in Firefox](/data/attachment/album/202010/11/103238wjrhrhhavfvt5vwr.jpg)


接下来，你会发现选择“任务管理器”的选项，只需点击它就行。


![](/data/attachment/album/202010/11/103242sq5p42z5zp4cizgx.jpg)


#### 使用 Firefox 任务管理器


到这后，你可以检查资源的使用情况，展开标签页来查看跟踪器和它的使用情况，也可以选择关闭标签，如下截图高亮所示。


![](/data/attachment/album/202010/11/103249q2sfs28ato1skkkd.png)


以下是你应该知道的：


* “能源影响”指的是 CPU 消耗。
* 子框架或子任务通常是与需要在后台运行的标签相关联的跟踪器/脚本。


通过这个任务管理器，你可以发现网站上的流氓脚本，以及它是否导致你的浏览器变慢。


这并不是什么 高科技，但并不是所有人都知道 Firefox 任务管理器。现在你知道了，它应该很方便，你觉得呢？




---


via: <https://itsfoss.com/firefox-task-manager/>


作者：[Ankush Das](https://itsfoss.com/author/ankush/) 选题：[lujun9972](https://github.com/lujun9972) 译者：[geekpi](https://github.com/geekpi) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
Firefox is popular among Linux users. It is the default web browser on several Linux distributions.

Among many other features, Firefox provides a task manager of its own.

Now, why would you use it when you have [task manager in Linux](https://itsfoss.com/task-manager-linux/) in the form of [system monitoring tools](https://itsfoss.com/linux-system-monitoring-tools/)? There is a good reason for that.

Suppose your system is taking too much of RAM or CPU. If you use top or some other system [resource monitoring tool like Glances](https://itsfoss.com/glances/), you’ll notice that these tools cannot distinguish the opened tabs or extensions.

Usually, each Firefox tab is displayed as **Web Content**. You can see that some Firefox process is causing the issue but that’s no way to accurately determine which tab or extension it is.

This is where you can use the Firefox task manager. Let me show you how!

## Firefox Task Manager

With Firefox Task Manager, you will be able to list all the tabs, trackers, and add-ons consuming system resources.

![Firefox Task Manager Shot](https://itsfoss.com/content/images/wordpress/2020/09/firefox-task-manager-shot.png)

As you can see in the screenshot above, you get the name of the tab, the type (tab or add-on), the energy impact, and the memory consumed.

While everything is self-explanatory, the **energy impact refers to the CPU usage** and if you are using a Laptop, it is a good indicator to show you what will drain the battery quicker.

### Access Task Manager in Firefox

Surprisingly, there is no [Firefox keyboard shortcut](https://itsfoss.com/firefox-keyboard-shortcuts/) for the task manager.

To quickly launch Firefox Task Manager, you can type “**about:performance**” in the address bar as shown in the screenshot below.

![Access Firefox task manager](https://itsfoss.com/content/images/wordpress/2020/09/firefox-url-performance.jpg)

Alternatively, you can click on the **menu** icon and then head on to “**More**” options as shown in the screenshot below.

![Firefox Task Manager Steps](https://itsfoss.com/content/images/wordpress/2020/09/firefox-task-manager-steps.jpg)

Next, you will find the option to select “**Task Manager**” — so just click on it.

![Firefox Task Manager Menu](https://itsfoss.com/content/images/wordpress/2020/09/firefox-task-manager-menu.jpg)

### Using Firefox task manager

Once there, you can check for the resource usage, expand the tabs to see the trackers and its usage, and also choose to close the tabs right there as highlighted in the screenshot below.

![Firefox Task Manager Close Tab](https://itsfoss.com/content/images/wordpress/2020/09/firefox-task-manager-close-tab.png)

Here’s what you should know:

- Energy impact means CPU consumption.
- The subframes or the subtasks are usually the trackers/scripts associated with a tab that needs to run in the background.

With this task manager, you can spot a rogue script on a site as well whether it’s causing your browser to slow down. It would have been better if there was a dedicated keyboard shortcut for it.

This isn’t rocket-science but not many people are aware of Firefox task manager. Now that you know it, this should come in pretty handy, don’t you think?