Answered by:
Windows 10 LTSB Memory Fragmentation

Question
-
I am facing a memory fragmentation issue in our 32 bit app (C++ and WPF based). when we run it for 100 hrs. as part of automated test. Application crashes after running AST for ~14 hrs.
I use CRT heap with LFH policy (Low fragment Heap) exclusively enabled in
Main()
. Problem is coming on windows 10 platform. No issue on Windows 8 platform with same set of our application binaries. We completed 100 hrs. run for test in windows 8 platform.I also create a large block heap in
Main()
method and this heap we use for specific purpose when we need a large amount of memory and we are managing it in our code. From Virtual Memory Statistics logs we can see that initial virtual memory allocation is 1.79 GB.After 14 hrs. of automated test run : on windows 10
Combined Max Available = 3989504( 3.805 MB)
Combined Frag Percent = 99.75%
CRT:sum_alloc = 2737569144(98.50%, 2610.749 MB)
CRT:max_alloc = 4458496( 4.252 MB)
CRT:allocAverageSize = 9043
CRT:num_free_blocks = 37813
CRT:sum_free = 22620888( 0.81%, 21.573 MB)
CRT:max_free = 514104( 0.490 MB)
VM:sum_free = 1581957120(36.83%,1508.672 MB)
VM:max_free = 10321920( 9.844 MB)On windows 8 for 100 hrs.
-
Combined Available = 1881204960( 1794.057 MB)
-
Combined Max Available = 1734127616( 1653.793 MB)
-
Combined Frag Percent = 7.82%
-
VM:sum_free = 1845817344(42.98%,1760.309 MB)
-
VM:max_free = 1734127616( 1653.793 MB)
No code change before migrating windows 8 to windows 10 LTSB.
I am using ADPlus and (debugging tools for Windows, Windbg and DebugDiag) tool to collect memory dumps at interval of 3 hrs.
Is there any setting or flag which I need to enable or anything I have to do withy code, using VS2010.
Application is based on Windows 10 LTSB (which is very specific Enterprise OS version for windows 10, gives stability and security)
20171128 18:09:08.000000 [Windows] Category:Application Severity:ERROR Details:XXXXX:"EventName: errh:NewFailure FieldServiceText: Failed to allocate memory. File,LineNumber: XXXXX.cpp,479 StationName: DP DateTime: 20171128180908023 ProcessName: XXXXX.exe Additional Details: Size of malloc or new attempted: 2,097,667DiagnosticCode: 0001.DT3G6P92.0 "
In Win event logs:
DateTime: 20171128180908023
XXXXX.exe
Additional Details:
Size of malloc or new attempted: 2,097,667DiagnosticCode: 0001.DT3G6P92.0- Edited by Nikhil_bangalore Wednesday, November 29, 2017 10:04 AM
- Moved by Richard MuellerMVP, Banned Wednesday, November 29, 2017 8:59 PM Not a TechNet Wiki question
Wednesday, November 29, 2017 6:07 AM
Answers
-
You have asked in the wrong forum. This forum is for questions and discussions about the TechNet Wiki.
Best to ask in either this IT Pro forum for Windows 10 Hardware and Performance issues:
https://social.technet.microsoft.com/Forums/en-US/home?forum=win10itprohardware
or this MSDN forum for WPF:
https://social.msdn.microsoft.com/Forums/en-US/home?forum=wpf
or perhaps this MSDN Visual C++ forum:
https://social.msdn.microsoft.com/Forums/en-US/home?forum=vcgeneral
Richard Mueller - MVP Enterprise Mobility (Identity and Access)
- Proposed as answer by Dave PatrickMVP Wednesday, November 29, 2017 10:27 PM
- Marked as answer by Just Karl Wednesday, December 6, 2017 2:40 PM
Wednesday, November 29, 2017 7:47 PM -
or also try over here.
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.- Marked as answer by Just Karl Wednesday, December 6, 2017 2:41 PM
Wednesday, November 29, 2017 10:28 PM
All replies
-
or also try over here.
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.- Marked as answer by Just Karl Wednesday, December 6, 2017 2:41 PM
Wednesday, November 29, 2017 10:28 PM