---
title: "How to solve this  ERROR: WMIInterface::GetInstances Failed to get the next class (WBEM_E_OUT_OF_MEMORY)"
description: "The error WMIInterface::GetInstances Failed to get the next class (WBEM_E_OUT_OF_MEMORY) occurs when the Windows Server runs out of memory during process monitoring. This issue originates from the operating system and requires investigation by Windows system administrators."
url: "https://docs.itrsgroup.com/docs/faq/geneos/15580729897245-geneos-how-to-solve-this-error-wmiinterface-getinstances-failed-to-get-the-next-class-wbem-e-out-of-memory/index.html"
---
## Problem Causes

- The issue that we are having is – that every 5-10 minutes on a Windows Server the processes plugins will fail/timeout causing the monitored processes to display incorrect statuses.
- <Wed Dec 21 09:49:29> ERROR: WMIInterface::GetInstances Failed to get the next class = "Win32\_Process", error code = 0x80041006 (WBEM\_E\_OUT\_OF\_MEMORY)
- The sampling resumes to normal after timeout/fail.

### Solution

- The error messages returned by WMIInterface are generated by the system and originate on the Windows server.
- The first one, for example, seems to indicate that there is not enough memory for the operation requested.

  This is extracted from the Microsoft website:

  > **WBEM\_E\_OUT\_OF\_MEMORY**
  >
  > 2147749894 (0x80041006)
  >
  > Not enough memory for the operation.

- Because this is related to your operating system, you should bring it up with your Windows system administrators, who will need to investigate and advise you.
  Please let us know if you have any further queries.

## References

- <https://learn.microsoft.com/en-us/windows/win32/wmisdk/wmi-error-constants>
- <https://learn.microsoft.com/en-us/windows/win32/wmisdk/wmi-non-error-constants>


