Skip to content

Different Heap behavior between 5.0 and 6.0. Maybe memory leak? #62182

@lenew

Description

@lenew

After upgrade my website from 5.0 to 6.0, memory consumption is about 180% as before.
Is this normal?


dotnet-counters on 5.0

[System.Runtime]
    % Time in GC since last GC (%)                                 0    
    Allocation Rate (B / 1 sec)                               49,432    
    CPU Usage (%)                                                  0    
    Exception Count (Count / 1 sec)                                0    
    GC Fragmentation (%)                                           1.23 
    GC Heap Size (MB)                                             30    
    Gen 0 GC Count (Count / 1 sec)                                 0    
    Gen 0 Size (B)                                                24    
    Gen 1 GC Count (Count / 1 sec)                                 0    
    Gen 1 Size (B)                                         1,293,576    
    Gen 2 GC Count (Count / 1 sec)                                 0    
    Gen 2 Size (B)                                        15,028,960    
    IL Bytes Jitted (B)                                    1,524,780    
    LOH Size (B)                                          10,806,240    
    Monitor Lock Contention Count (Count / 1 sec)                  0    
    Number of Active Timers                                       23    
    Number of Assemblies Loaded                                  144    
    Number of Methods Jitted                                  21,915    
    POH (Pinned Object Heap) Size (B)                        375,464    
    ThreadPool Completed Work Item Count (Count / 1 sec)           1    
    ThreadPool Queue Length                                        0    
    ThreadPool Thread Count                                        4    
    Working Set (MB)                                             240 

dotnet-counters on 6.0

[System.Runtime]
    % Time in GC since last GC (%)                                 0    
    Allocation Rate (B / 1 sec)                                8,168    
    CPU Usage (%)                                                  0    
    Exception Count (Count / 1 sec)                                0    
    GC Committed Bytes (MB)                                      295    
    GC Fragmentation (%)                                           1.172
    GC Heap Size (MB)                                             88    
    Gen 0 GC Count (Count / 1 sec)                                 0    
    Gen 0 Size (B)                                                48    
    Gen 1 GC Count (Count / 1 sec)                                 0    
    Gen 1 Size (B)                                        25,512,768    
    Gen 2 GC Count (Count / 1 sec)                                 0    
    Gen 2 Size (B)                                        10,452,680    
    IL Bytes Jitted (B)                                    1,395,898    
    LOH Size (B)                                           7,419,152    
    Monitor Lock Contention Count (Count / 1 sec)                  0    
    Number of Active Timers                                       16    
    Number of Assemblies Loaded                                  141    
    Number of Methods Jitted                                  20,317    
    POH (Pinned Object Heap) Size (B)                        260,872    
    ThreadPool Completed Work Item Count (Count / 1 sec)           2    
    ThreadPool Queue Length                                        0    
    ThreadPool Thread Count                                        6    
    Time spent in JIT (ms / 1 sec)                                 0    
    Working Set (MB)                                             436 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions