Microsoft Teams 如何使用記憶體How Microsoft Teams uses memory

有些 Microsoft 團隊使用者有關于團隊如何使用記憶體的問題。Some Microsoft Teams users have questions about how Teams uses memory. 本文將說明團隊如何使用記憶體,以及為什麼團隊桌面應用程式 () 應用程式,以及團隊 web app 不會防止同一部電腦上的其他應用程式和工作負載都能以最佳的方式執行。This article describes how memory is used by Teams, and why the Teams desktop application (app) and the Teams web app do not prevent other apps and workloads on the same computer from having enough memory to run optimally. 團隊是設計用來使用新式 web 技術的。Teams is designed to use modern web technology. 若要這樣做,小組桌面用戶端是在 Electron 上開發的,使用 Chromium 來轉譯。To achieve this, the Teams desktop client was developed on Electron, which uses Chromium for rendering. 此轉譯引擎是在如今許多最流行的瀏覽器(包括邊緣與 Chrome)之後,都是相同的轉譯引擎。This is the same rendering engine behind many of today's most popular browsers, including Edge and Chrome.

團隊的運作方式How Teams works

在 Electron 上設計的團隊可讓您更快速地進行開發,而且也會在不同作業系統上的團隊版本之間保持奇偶性, (Windows、Mac 和 Linux) 。Teams being designed on Electron allows for faster development, and it also maintains parity between Teams versions across different operating systems (Windows, Mac, and Linux). 此同位是可能的,因為 Electron 和 Chromium 會在所有版本中維持相似的程式碼基底。This parity is possible because Electron and Chromium maintain a similar code base across all versions. 這個體系結構的另一個優點是,小組 web app 與桌上出版本之間有類似的記憶體使用量設定檔。Another advantage of this architecture is there's a similar memory usage profile between the Teams web app and the desktop version. Web app 和桌上出版都使用記憶體,與瀏覽器使用的方式類似。Both the web app and the desktop versions use memory in a similar way to how a browser would use it. 有關 Electron 的詳細資訊可在 他們的網站上使用。More information about Electron is available at their Web site.

如需詳細資訊,請參閱Chrome 記憶體中Chromium 記憶體使用量與重要概念。See Chromium Memory Usage and Key Concepts in Chrome Memory for more information.

下列影像顯示適用于 Windows 和小組 Web app 的團隊桌面應用程式的並行記憶體使用量,在 (在 Google Chrome) 中執行。The following image shows side-by-side memory usages of the Teams desktop app for Windows and the Teams Web app (in this example, running in Google Chrome).

桌面應用程式和 Web 應用程式的小組記憶體使用量

團隊中的記憶體使用量Memory usage in Teams

瞭解團隊在系統記憶體中的 預期 行為,並瞭解真正問題的系統記憶體問題的症狀,這一點很重要。It is important to understand the expected behavior of Teams when it comes to system memory, and to know the symptoms of truly problematic system memory issues.

小組預期的記憶體使用量Expected memory usage by Teams

不論您執行的是團隊桌面應用程式還是團隊 web app,Chromium 會偵測到有多少可用的系統記憶體,並充分利用該記憶體來優化轉譯體驗。Whether you're running the Teams desktop app or the Teams web app, Chromium detects how much system memory is available and utilizes enough of that memory to optimize the rendering experience. 當其他 app 或服務需要系統記憶體時,Chromium 會為那些進程帶來記憶體。When other apps or services require system memory, Chromium gives up memory to those processes. Chromium [調整小組的記憶體使用量],以優化團隊效能,而不會影響目前執行的任何其他專案。Chromium tunes Teams memory usage on an ongoing basis in order to optimize Teams performance without impacting anything else currently running.

如此一來,類似的 Chromium 工作負載可能會使用不同的記憶體量,視可用的系統記憶體數量而定。In this way, similar Chromium workloads can utilize varying amounts of memory, depending on the amount of system memory that is available.

下圖說明四個不同系統上的小組記憶體使用量,每個都有不同的可用記憶體量。The following graph depicts memory usage by Teams on four separate systems, each with different amounts of memory available. 每個系統都會處理相似的工作負載 (相同的 app 開啟並執行) 。Each of the systems is processing similar workloads (same apps open and running).

團隊在不同系統上的記憶體使用量

當電腦有更多記憶體時,小組會使用該記憶體。When computers have more memory, Teams will use that memory. 在記憶體不足的系統中,小組將會使用較少的時間。In systems where memory is scarce, Teams will use less.

系統記憶體問題的症狀Symptoms of system memory issues

如果您在電腦上看到下列一或多個症狀,可能會有嚴重的系統記憶體問題:If you see one or more of the following symptoms on your computer, you could have a serious system memory issue:

  • 當多個大型應用程式同時執行時,會使用高記憶體。High memory use when multiple large applications are running simultaneously.
  • 系統效能變慢或應用程式掛起。Slow system performance or applications hanging.
  • 所有 app 在90% 或更高的整體系統記憶體使用量。Sustained overall system memory usage of 90% or higher across all apps. 使用這個記憶體使用量時,小組應該將記憶體傳回其他 app 和工作負載。With this amount of memory usage, Teams should be giving memory back to other apps and workloads. 持續記憶體使用量90% 可能意味著團隊沒有將記憶體傳回給系統,這表示發生問題。Sustained memory usage of 90% could mean Teams isn't giving memory back to the system, which indicates a problem.

下列影像顯示在系統記憶體使用量異常高時,工作管理員中的視圖範例。The following images show examples of views in Task Manager when system memory usage is abnormally high.

[工作管理員] 中的小組記憶體使用量視圖

[團隊記憶體使用量] 圖形在 [工作管理員] 中