LKBEN10861: Installing dheapmon for looking at your desktop heap


This article has not been checked!

LKB | Created: 02/04/2020 | Version: 0 | Language: EN | Rating: 0 | Outdated: False | Marked for deletion: False

Author: Wim Peeters - Keskon GmbH & Co. KG


Symptom

You need to install the dheapmon tool to view the desktop heap size on the system.

Cause

none

Solution

You need to download the tool from the microsoft website. The tool has to be entpacked and needs to be installed in a special way. (it need the debugging symbols for the installation)


The installation from the commandline:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

F:\>"C:\Software\Desktop Heap Monitor\kktools\dheapmon8.1\x86\dheapmon.exe"
  Dheapmon - Software is not installed or Driver is not running (1012)

F:\>"C:\Software\Desktop Heap Monitor\kktools\dheapmon8.1\x86\dheapinst.exe"
  dheapinst - Win32k.sys symbol load error, Correct symbol required

F:\>"C:\Software\Desktop Heap Monitor\kktools\dheapmon8.1\x86\dheapinst.exe" -y
c:\Symbols
  dheapinst - Win32k.sys symbol load error, Correct symbol required

F:\>"C:\Software\Desktop Heap Monitor\kktools\dheapmon8.1\x86\dheapinst.exe" -y
srv*http://msdl.microsoft.com/download/symbols
  dheapinst - Desktop Heap Monitor installed successfully

F:\>"C:\Software\Desktop Heap Monitor\kktools\dheapmon8.1\x86\dheapmon.exe"
Desktop Heap Information Monitor Tool (Version 8.1.2925.0)
Copyright (c) Microsoft Corporation.  All rights reserved.
  Dheapmon - Software is not installed or Driver is not running (2)


To load the driver you need to do it -l

Dheapmon -l

now you loaded the driver and can use the tool:

C:\WINDOWS\system32\kktools>dheapmon.exe
Desktop Heap Information Monitor Tool (Version 8.1.2925.0)
Copyright (c) Microsoft Corporation.  All rights reserved.
-------------------------------------------------------------
  Session ID:    0 Total Desktop: (  5824 KB -    8 desktops)

  WinStation\Desktop            Heap Size(KB)    Used Rate(%)
-------------------------------------------------------------
  WinSta0\Default                    3072             15.3
  WinSta0\Disconnect                   64              4.5
  WinSta0\Winlogon                    128              9.2
  Service-0x0-3e7$\Default            512             27.5
  Service-0x0-3e4$\Default            512              6.8
  Service-0x0-3e5$\Default            512              6.8
  SAWinSta\SADesktop                  512              0.5
  Service-0x0-fea2$\Default           512              1.1
-------------------------------------------------------------

C:\WINDOWS\system32\kktools>

About the Author

Wim Peeters is electronics engineer with an additional master in IT and over 30 years of experience including time spent in support, development, consulting, training and database administration. Wim has worked with SQL Server since version 6.5. He has developed in C/C++, Java and C# on Windows and Linux in different European countries and different European languages. He writes knowledge base articles to solve IT problems and publishes them on the Lubby Knowledge Platform where he is one of the most important contributors and the main developer.

Disclaimer:

The information provided in this document is intended for your information only. Lubby makes no claims to the validity of this information. Use of this information is at own risk!