microsoft / microsoft/CSS-Exchange

[Issue] - Health Checker wrong finding: dynamic memory detected

Open
#2,575 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Health Checker Issue
Dominant language
PowerShell
Stars
1.3k
Forks
395
Avg merge
14h 7m
Merged PRs (30d)
5

Description

Provide Version Number
26.08.11.1651

Describe the issue
The script generates a wrong alert about dynamic memory:
Dynamic Memory Detected: True 0GB is the allowed dynamic memory of the server. Not supported to have dynamic memory configured.

Expected behavior
The alert should not be triggered if danymic memory is not activated

Script Output
Dynamic Memory Detected: True 0GB is the allowed dynamic memory of the server. Not supported to have dynamic memory configured.

Additional context
This block seems to handle the perf counter wrong:

if ($null -eq $counter) {
                $params.Details = "Unknown - Required Counter Not Loaded. Missing Counter: $($counterName)"
                $params.DisplayWriteType = "Yellow"
            } elseif (($counter.CookedValue / 1024) -ne $totalPhysicalMemory -and
                ($counter.CookedValue / 1024) -ne $totalPhysicalMemoryNotRounded) { ...

Exchange is running on Hyper-V, Win 2019 Host with disabled dynamic memory.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the Health Checker script block that evaluates the dynamic-memory performance counter, using the reported "Dynamic Memory Detected" output and the counter logic in the issue as entry points. Reproduce the check on the described Hyper-V configuration, then verify that disabled dynamic memory does not trigger the alert while missing or genuinely enabled memory remains handled appropriately.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.