Friday, September 13, 2013

What is memory leakage in Sharepoint 2010?


When a system does not correctly manage its memory allocations, it is said to leak memory. A memory leak is a bug. Symptoms can include reduced performance and failure.

At application point of view:
Actually, when we allocate the memory dynamically to the object and some how lose the way to reach that memory is called memory leakage.

For example: Suppose there is function where in we allocate the memory dynamically and store it's address in a pointer that is local to that function. When the control
returns from the function, the local pointer dies and losing the address of that memory but dynamically allocate memory would continue to remain allocated yet inaccessible.

This allocated memory is called memory leakage.


How we detact memory leak?

http://www.fewlines4biju.com/2012/09/detecting-memory-leaks-in-sharepoint.html
------------------------------------------------------------------------------------------------

SPDisposeChecker is a very good tool to detect memory leaks in SharePoint 2010. First download
SharePoint 2010 Rounded Div
SPDisposeChecker from this URL and then follow the below steps:

http://www.codeproject.com/Articles/429077/SharePoint-Dispose-Checker-Tool









No comments: