Share via


ActiveMonitoringTraceLogs tuning

Question

Wednesday, January 24, 2018 6:07 PM

I have 64MB files for every 1-2hours, on a server that is in a test environment with no activity on it in this directory:

In C:\Program Files\Microsoft\Exchange Server\V15\Logging\Monitoring\Monitoring\MSExchangeHMWorker\ActiveMonitoringTraceLogs

1. Is this worker run by 'Ms Exchange Health Manager or maybe also by 'Ms Exchange Health Manager Recovery'?

Looks like everything is polled every 5min, can tracelogging can be disabled by changing <add key="IsTraceLoggingEnabled" value="false"/> in C:\Program Files\Microsoft\Exchange Server\V15\Bin\MSExchangeHMWorker.exe.config

2. Is there a setting so you can change this to 10min or 15min?

source:
http://forums.msexchange.org/ActiveMonitoring_Trace_Logs/m_1800593382/tm.htm

TIP for microsoft developers: use 01 instead of 1, (or have your file explorer do something with numeric sorting, like Linux sort -n)

All replies (4)

Thursday, January 25, 2018 7:28 AM | 4 votes

Hi,

Yes, it's the tracing log of Microsoft Exchange Health Manager service and Microsoft Exchange Health Manager Recovery service. And, we can disable it by setting "IsTraceLoggingEnabled" to in <Exchange InstallPath>:\Bin\MSExchangeHMWorker.exe.config.

Also, we can modify the flush interval (i.e. TraceLogFlushIntervalInMinutes) of this log.

Quota this setting from TraceLogFlushIntervalInMinutes:

    <add key="IsTraceLoggingEnabled" value="true"/>
    <add key="MaxTraceLogDirectorySizeInBytes" value="2147483648"/>
    <add key="MaxTraceLogFileSizeInBytes" value="268435456"/>
    <add key="TraceLogBufferSizeInBytes" value="1024"/>
    <add key="TraceLogFlushIntervalInMinutes" value="1"/>
    <add key="DefaultTraceLogPath" value="C:\Program Files\Microsoft\Exchange Server\V15\Logging"/>

Best Regards,
Allen Wang
Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact [email protected].


Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.


Tuesday, February 6, 2018 3:48 PM

Hi,

Do you get the information about your question?
If so, please be free to mark it as answer. Thanks.

Best Regards,
Allen Wang
Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact [email protected].


Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.


Tuesday, March 3, 2020 9:59 PM

Thanks, automated it like this.

$configPath="C:\Program Files\Microsoft\Exchange Server\V15\Bin\MSExchangeHMRecovery.exe.config" 
$xml = New-Object xml
$xml.PreserveWhitespace = $true
$xml = [xml](get-content $configPath)
$root = $xml.get_DocumentElement();
$item = $root.appSettings.add | ? { $_.key -eq "IsTraceLoggingEnabled" }
$item.value = "false" 
$xml.Save($configPath)

$configPath="C:\Program Files\Microsoft\Exchange Server\V15\Bin\MSExchangeHMWorker.exe.config" 
$xml = New-Object xml
$xml.PreserveWhitespace = $true
$xml = [xml](get-content $configPath)
$root = $xml.get_DocumentElement();
$item = $root.appSettings.add | ? { $_.key -eq "IsTraceLoggingEnabled" }
$item.value = "false" 
$xml.Save($configPath)

Wednesday, March 4, 2020 2:29 PM

You know by any chance what does "StackTraceAnalysisEnabled"?