2011-02-07 94 views
0

一个Sharepoint框我adminster变得不稳定,并且会抛出几个内存不足的异常,然后变得无响应并且需要IIS重置。SharePoint不稳定,正在获取ASP.NET错误消息和.NET运行时错误

有没有人遇到过这个?这个盒子是一个有4个内核和4GB内存的虚拟机,dosnt似乎一直使用100%的任何东西。

ASP.NET事件日志:

An unhandled exception occurred and the process was terminated. 
Application ID: /LM/W3SVC/1656383179/Root 
Process ID: 2476 
Exception: System.OutOfMemoryException 
Message: Exception of type 'System.OutOfMemoryException' was thrown. 
StackTrace: 
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. 

和.NET事件日志项:

EventType clr20r3, P1 w3wp.exe, P2 6.0.3790.3959, P3 45d6968e, P4 mscorlib, P5 2.0.0.0, P6 4be90358, P7 12d9, P8 9, P9 system.outofmemoryexception, P10 NIL. 

回答

1

,如果你有大量的自定义代码写的不是很称职的开发者这是一个常见的问题。 Sharepoint中有许多IDisposable对象应该妥善处置。所以,如果有人违反了这个规则,特别是在经常访问的webparts中,内存可能会被这些对象所抛弃,这些对象在最糟糕的情况下甚至会导致OutOfMemoryException异常。可能还有其他情况,但这是最常见的情况。

+0

谢谢,我们在我们的主页上有很多自定义的webparts,我会检查所有这些webparts的更新。 – Pierce 2011-02-08 09:20:58