小编All*_*len的帖子

带有system.OutOfMemoryException的x86 .net应用程序

应用程序运行1天后,我得到了OutOfMemoryException,应用程序完全使用1.5G内存,全部由托管堆消耗,gen 2使用200mb,LOB使用1.3mb,但是我们想要的东西是,900mb的空间是免费的.从perf计数器我看到有一些gen 2 gc收集发生了,为什么GC收集器不能收集gen2和LOB中的那900mb可用空间?

我非常乐意为你提供帮助.

以下信息来自windbg:

0:000> !eeheap -gc
Number of GC Heaps: 1
generation 0 starts at 0x183153f0
generation 1 starts at 0x182aa834
generation 2 starts at 0x02131000
ephemeral segment allocation context: none
 segment     begin allocated  size
02130000  02131000  0312f284  0xffe284(16769668)
07750000  07751000  0874fc5c  0xffec5c(16772188)
09e30000  09e31000  0ae2fc2c  0xffec2c(16772140)
0b230000  0b231000  0c22ffec  0xffefec(16773100)
0c230000  0c231000  0d22f6f0  0xffe6f0(16770800)
0d230000  0d231000  0e22ea10  0xffda10(16767504)
0e230000  0e231000  0f22c1c4  0xffb1c4(16757188)
10390000  10391000  1138ddf4  0xffcdf4(16764404)
154e0000  154e1000  164da90c  0xff990c(16750860)
34aa0000  34aa1000  35a9dbfc  0xffcbfc(16763900)
7aca0000  7aca1000 …
Run Code Online (Sandbox Code Playgroud)

.net out-of-memory

5
推荐指数
1
解决办法
763
查看次数

标签 统计

.net ×1

out-of-memory ×1