• Need help to confirm unmanaged memory Leak

    From abhay dhar@21:1/5 to All on Mon Jun 13 07:03:55 2022
    Hi Team
    I am facing a possible un-managed memory leak problem in Prod Azure appservice Infra.
    What we are trying to diagnose is - Why does the private memory consumption on prod appservice continue to creep up every day and it goes up to over 5+GB for a P2V2 appservice plan(7GB RAM)?
    The codebase deployed on Prod and UAT is same and both have the same specs. The only difference is the actual real world traffic to UAT is not that much compared to prod
    For diagnosing the problem.
    1- I had captured few memory dumps and found few code issues , which I fixed and further analysis of the dumps did not show any areas in the flame graphs
    2- I have captured 2 dumps @3GB and 5GB . I was hoping to do a side-by-side comparion of the dumps to see if its possible to see what changed between these two
    3- Involving MS support has not helped as they are unable to provide any tangible areas to diagnose
    4- When the dumps were captured, MS said that " the committed memory in the dmp file is shown as 2GB , but the private memory consumed was 4G+". The dumps were captured using the Azure portal -> Diagnostic tools option

    Also,
    Below is the stats of !address -summary
    --- Usage Summary ---------------- RgnCount ----------- Total Size -------- %ofBusy %ofTotal
    Free 1594 7dfc`41eeb000 ( 125.985 TB) 98.43%
    <unknown> 7342 203`8d46b000 ( 2.014 TB) 99.96% 1.57%
    Image 2836 0`1905d000 ( 400.363 MB) 0.02% 0.00%
    Heap 631 0`12f73000 ( 303.449 MB) 0.01% 0.00%
    Stack 443 0`048c0000 ( 72.750 MB) 0.00% 0.00%
    Other 25 0`002e1000 ( 2.879 MB) 0.00% 0.00%
    TEB 147 0`00128000 ( 1.156 MB) 0.00% 0.00%
    PEB 1 0`00001000 ( 4.000 kB) 0.00% 0.00%

    --- Type Summary (for busy) ------ RgnCount ----------- Total Size -------- %ofBusy %ofTotal
    MEM_MAPPED 219 200`00ae5000 ( 2.000 TB) 99.27