Skip to main content
NetApp Knowledge Base

CONTAP-751146: mgwd virtual memory grows over time due to counter manager REST worker thread resource exhaustion

Views:
13
Visibility:
Public
Votes:
1
Category:
ontap-9
Specialty:
perf
Last Updated:

Issue

  • On clusters where the ONTAP counter manager REST API endpoints (/api/cluster/counter/tables/*/rows) are polled frequently — by tools such as NetApp Harvest (RestPerf), ActiveIQ Unified Manager, CheckMk, or custom REST clients — the mgwd process may grow in virtual memory size over time until it exhausts its 4 GB virtual address limit and crashes.

  • The following EMS messages appear as mgwd approaches the limit:

kern.vm.mmap.return:notice: mmap(2) by mgwd (pid <pid>) for size <N> failed: VMEM limit exceeded, limit 4294967296, error 12.

  • After exhaustion, mgwd crashes and is automatically restarted by spmd. The restart resolves the condition temporarily but virtual memory growth resumes. The time to exhaustion depends on poll frequency and the number of performance counter instances (volumes, LUNs, SVMs, qtrees, etc.) on the cluster.

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.