OutOfMemoryException-这是假警报吗

OutOfMemoryException-这是假警报吗,exception,out-of-memory,windbg,sos,Exception,Out Of Memory,Windbg,Sos,我的转储文件包含OutOfMemoryException,但所有对象字段似乎都为空。这只是一个假警报还是有办法知道这个异常 0:052> !do 000000027fff10e8 The version of SOS does not match the version of CLR you are debugging. Please load the matching version of SOS for the version of CLR you are debugging. C

我的转储文件包含OutOfMemoryException,但所有对象字段似乎都为空。这只是一个假警报还是有办法知道这个异常

0:052> !do 000000027fff10e8 
The version of SOS does not match the version of CLR you are debugging.  Please
load the matching version of SOS for the version of CLR you are debugging.
CLR Version: 4.0.30319.18449
SOS Version: 4.0.30319.34011
Name:        System.OutOfMemoryException
MethodTable: 000007fcb5476920
EEClass:     000007fcb4f3cd88
Size:        160(0xa0) bytes
File:        C:\Windows\Microsoft.Net\assembly\GAC_64\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll
Fields:
              MT    Field   Offset                 Type VT     Attr            Value Name
000007fcb5476508  4000002        8        System.String  0 instance 0000000000000000 _className
000007fcb547e880  4000003       10 ...ection.MethodBase  0 instance 0000000000000000 _exceptionMethod
000007fcb5476508  4000004       18        System.String  0 instance 0000000000000000 _exceptionMethodString
000007fcb5476508  4000005       20        System.String  0 instance 0000000000000000 _message
000007fcb547e238  4000006       28 ...tions.IDictionary  0 instance 0000000000000000 _data
000007fcb5476738  4000007       30     System.Exception  0 instance 0000000000000000 _innerException
000007fcb5476508  4000008       38        System.String  0 instance 0000000000000000 _helpURL
000007fcb5476ae8  4000009       40        System.Object  0 instance 0000000000000000 _stackTrace
000007fcb5476ae8  400000a       48        System.Object  0 instance 0000000000000000 _watsonBuckets
000007fcb5476508  400000b       50        System.String  0 instance 0000000000000000 _stackTraceString
000007fcb5476508  400000c       58        System.String  0 instance 0000000000000000 _remoteStackTraceString
000007fcb54792b8  400000d       88         System.Int32  1 instance                0 _remoteStackIndex
000007fcb5476ae8  400000e       60        System.Object  0 instance 0000000000000000 _dynamicMethods
000007fcb54792b8  400000f       8c         System.Int32  1 instance      -2147024882 _HResult
000007fcb5476508  4000010       68        System.String  0 instance 0000000000000000 _source
000007fcb547a338  4000011       78        System.IntPtr  1 instance                0 _xptrs
000007fcb54792b8  4000012       90         System.Int32  1 instance       -532462766 _xcode
000007fcb542cdd8  4000013       80       System.UIntPtr  1 instance                0 _ipForWatsonBuckets
000007fcb5499eb8  4000014       70 ...ializationManager  0 instance 0000000000000000 _safeSerializationManager
000007fcb5476ae8  4000001        0        System.Object  0   shared           static s_EDILock
                                 >> Domain:Value  0000000002b83fd0:NotInit  <<
0:052>!do 0000000 27FFF10E8
SOS的版本与正在调试的CLR的版本不匹配。请
加载与正在调试的CLR版本相匹配的SOS版本。
CLR版本:4.0.30319.18449
SOS版本:4.0.30319.34011
名称:System.OutOfMemoryException
方法表:000007fcb5476920
EEClass:000007fcb4f3cd88
大小:160(0xa0)字节
文件:C:\Windows\Microsoft.Net\assembly\GAC_64\mscorlib\v4.0.0.0\uu_b77a5c561934e089\mscorlib.dll
领域:
MT字段偏移类型VT属性值名称
000007fcb5476508 4000002 8系统。字符串0实例0000000000000000\u类名
000007fcb547e880 4000003 10…section.MethodBase 0实例0000000000000000\u例外方法
000007fcb5476508 4000004 18系统。字符串0实例000000000000\u异常方法字符串
000007fcb5476508 4000005 20系统。字符串0实例0000000000000000\u消息
000007fcb547e238 4000006 28…tions.IDictionary 0实例0000000000000000\u数据
000007FCB547638 4000007 30系统。异常0实例000000000000\u内部异常
000007fcb5476508 4000008 38系统。字符串0实例0000000000000000\u帮助URL
000007fcb5476ae8 4000009 40系统。对象0实例000000000000\u堆栈跟踪
000007FCB5476E8 400000a 48系统。对象0实例000000000000\u WatsonBucket
000007fcb5476508 400000b 50系统。字符串0实例0000000000000000\u堆栈跟踪字符串
000007fcb5476508 400000c 58系统。字符串0实例0000000000000000\u remoteStackTraceString
000007fcb54792b8 400000d 88 System.Int32 1实例0\u remoteStackIndex
000007FCB5476E8 400000e 60系统。对象0实例0000000000000000\u动态方法
000007fcb54792b8 400000f 8c System.Int32 1实例-2147024882\u HResult
000007fcb5476508 4000010 68系统。字符串0实例0000000000000000\u源
000007fcb547a338 4000011 78 System.IntPtr 1实例0\u xptrs
000007fcb54792b8 4000012 90 System.Int32 1实例-532462766_xcode
000007fcb542cdd8 4000013 80 System.UIntPtr 1实例0_IPForWatsonBucket
000007fcb5499eb8 4000014 70…序列化管理器0实例0000000000000000\u安全序列化管理器
000007fcb5476ae8 4000001 0系统。对象0共享静态s_EDILock

>>Domain:Value 000000000 2B83FD0:NotInit框架在启动时预先分配了一个OutOfMemoryException对象。此对象的存在并不表示存在问题。我想这就是你所看到的。

通常OutOfMemoryException是由无限循环、内存泄漏或类似情况引起的附带效应,但我不确定情况是否如此。你能提供更具体的细节吗?代码在哪里?代码库很大,有数百万行。另外,我没有看到任何内存使用率上升的迹象。这就是为什么我会认为这是一个错误的警报。是否有任何这样的异常对象是预先分配的,并且可以安全地忽略?@PaulSnow,只有在抛出特定异常时,异常可能无法分配时,才是预先分配的。这就是我们的情况。