Skip to content
On this page

内存控制

内存是啥

内存(Memory)是计算机的重要部件,也称内存储器主存储器,它用于暂时存放CPU中的运算数据,以及与硬盘外部存储器交换的数据。它是外存CPU进行沟通的桥梁,计算机中所有程序的运行都在内存中进行,内存性能的强弱影响计算机整体发挥的水平。只要计算机开始运行,操作系统就会把需要运算的数据从内存调到CPU中进行运算,当运算完成,CPU将结果传送出来。

CPU_主存_外存

为什么.NET好像没关注过 64位/32位

anycpu

内存分配

野内存

GC会标记所有的对象,
但是如果让GC无法判断这个对象要不要释放那就尴尬了。
DUMP分析:
dotnet tool install --global dotnet-counters
dotnet tool install --global dotnet-dump
dotnet-counters monitor --refresh-interval 1 -p [pid]
dotnet-dump collect -p [pid]
dotnet-dump analyze [dump path]
dumpheap -stat
dumpheap -mt [address]
gcroot -all [address]

GC

SOH:SOH

LOH:

LOH

Date: 2023/2/2

Authors: 徐峰

Tags: Memory