WMI and large amount of data being returned causing high CPU usage

James Martin 1 Reputation point
2020-05-14T00:12:45.603+00:00

We are trying to monitor a Windows Server 2019 machine that is a dedicated print server with a very high volume of print queues attached to it, around 12,000!

Hardware Specs

8141-printserverspecs.png

When using WMI functions such as Win32_Printer to get the printer information even if we filter the objects to return only the fields we absolutely require it is causing the CPU to spike to 100%. We have trouble shot this down to the sheer volume of the data being returned as running the same process on a server with only 1000 queues attached does cause CPU usage to increase but to nowhere near the extent as the server with the very high number of queues attached. These bursts of 100% CPU usage are only brief but we would like to eliminate them if we can as it is giving false positives in our hardware monitoring that we have to follow up each time. Also breaking the queries up into 100 or 1000 printer batches still caused an increase of CPU usage of around 20 - 30% which again can take us over our hardware monitoring thresholds.

My question is does the community know of any more efficient ways to get this sort of information about printers and their queues not using WMI or the CIM_Printer classes please?

Thanks in advance for any assistance!

Regards

James

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,736 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Fay Wang - MSFT 5,206 Reputation points
    2020-05-14T05:51:36.507+00:00

    Hello,

    Welcome to Microsoft Q&A!

    Currently, Microsoft Q&A is under a public preview. All the supported topics are on the right top. You can go to this forum to ask this question.

    Thanks.

    0 comments No comments

  2. James Martin 1 Reputation point
    2020-07-17T06:33:13.03+00:00

    Hi Fay Wang,

    The Forum you have referred me too: Windows Server 2019 General” Forum will be migrating to a new home on Microsoft Q&A anyway according to this link!

    https://social.technet.microsoft.com/Forums/en-US/8273be94-ce53-4fce-9dba-82a01de51ba3/announcement-8220windows-server-2019-general8221-forum-will-be-migrating-to-a-new-home-on?forum=ws2019

    Therefore instead of sending me into a reciprocal never ending loop where this never gets a real answer from Microsoft like most technical questions posted to you guys, is there anyone in Microsoft Land that can answer the question posted? Is WMI or CIM the only way to get Printer information in bulk like I am proposing or not?

    Thanks in advance,

    Regards

    James

    0 comments No comments