.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

SharePoint memory leak (8l1n)

Posted By:      Posted Date: September 23, 2010    Points: 0   Category :SharePoint
hi , I'm annoied with the memory leak problem these days. the following text is copied from the ULS log. Does anyone can read this?  or pick up some clues out of it?

it's high appreciate for your help!

8l1n High     An SPRequest object was not disposed before the end of this thread.  To avoid wasting system resources, dispose of this object or its parent (such as an SPSite or SPWeb) as soon as you are done using it.  This object will now be disposed.  Allocation Id: {BE9269D2-BE0D-4A94-BBD9-71FD642892F2}  This SPRequest was allocated at    at Microsoft.SharePoint.Library.SPRequest..ctor()     at Microsoft.SharePoint.SPGlobal.CreateSPRequestAndSetIdentity(Boolean bNotGlobalAdminCode, String strUrl, Boolean bNotAddToContext, Byte[] UserToken, String userName, Boolean bIgnoreTokenTimeout, Boolean bAsAnonymous)     at Microsoft.SharePoint.SPWeb.InitializeSPRequest()     at Microsoft.SharePoint.SPWeb.EnsureSPRequest()     at Microsoft.SharePoint.SPWeb.get_Request()     at Microsoft.SharePoint.SPListCollect... 
09/21/2009 13:16:35.11* w3wp.exe (0x1780)                        0x13D0 Windows SharePoint Services    General                        8l1n High     ...ion.EnsureListsData(Guid webId, String strListName)     at Microsoft.SharePoint.SPListCollection.EnsureListsData(String strListName)     at Microsoft.SharePoint.SPListCollection.ItemByInternalName(Strin

View Complete Post

More Related Resource Links

Memory leak?


I’m not sure how I should consider my problem. I’m developing workflow with VS 2008 for MOSS 2007. I’ve created simple method which remove security group “MyGroup” from the item. And it seems that it works:

private void UsunDziedziczenieUprawnien_ExecuteCode(object sender, EventArgs e)


            using (SPSite site = new SPSite (workflowProperties.SiteId))

WmiPrvSE.exe causes a huge memory leak in SQL server 2008 R2, why?

My OS is windows server 2008 r2 data center 64 bit and my SQL server is server 2008 R2. The problem is when I open sql server, the WmiPrvSE.exe process consumes 20 - 60kbs every second. Several hours later, it eats up at least 200mbs memorry and this process seems like it will never stop. Can any experts give me some ideas to fit this mess? PS: My mainboard is Asus striker II formular, cpu is intel quad-core. Also, all my software are updated to latest version.

Memory leak on binding to a WPF TreeView

We're having an issue with a TreeView hanging onto a viewmodel set that has been bound to it. We have a static treeview on the main window, and reset its ItemsSource to Nothing or a new viewmodel when new things need to be displayed. The problem seems to be that it's hanging onto the first item that it was bound to, even after the ItemsSource is set to nothing. The connection seems to be through some strange unknown binding that's in the EffectiveValues collection of the TreeView.   I was able to repro this in a test project, so I'll post the simplified code:   TreeView templates:   <Window.Resources> <HierarchicalDataTemplate DataType="{x:Type local:ParentViewModel}" ItemsSource="{Binding ChildVMs}"> <TextBlock Text="{Binding Name}"/> </HierarchicalDataTemplate> <DataTemplate DataType="{x:Type local:ChildViewModel}"> <TextBlock Text="{Binding Name}"/> </DataTemplate> </Window.Resources>   ViewModel definitions: (Shared Function to generate the itemssource for the treeview)   Public Class ParentViewModel Public Shared counter As Integer = 0 Public Shared Function GenerateViewModel() As List(Of ParentViewModel) Dim pvm As New ParentViewModel With {.Name = "Parent" & counter} ' Unique name pvm.ChildV

InteropBitmap memory leak

Goal : Create a scrolling wave form that has a low overhead (WPF) Challenges : Huge bitmaps are not accepted by Image.Source Smaller (but still very big bitmaps) are accepted but overall UX is terrible. Memory conservation Scrolling must be at 60fps Problems encountered : Used GPU memory amount is insane ! (400 to 800 Mb each 10 seconds) So here's what I did : I am rendering that bitmap through an Image.Source that I created with Imaging.CreateBitmapSourceFromMemorySection (which type is InteropBitmap). I have loaded that big bitmap in memory and every time I need to update, I do a CopyMemory then I do InteropBitmap.Invalidate(), so far it's perfect and performance is excellent. That particular type of BitmapSource is said to be the fastest, and it is actually; but after some profiling, it litterally eats GPU memory, as said above. It seems that InteropBitmap never recycles GPU memory, or caches it, I don't know... On my Win7 x64 machine, I have 4Gb of which up to 1.5Gb can be used by the GPU. (Laptop is a Thinkpad T61p with dual-core at 2.5Ghz and a Quadro FX570M with 256Mb) My first and safer solution was to use a WriteableBitmap which works good but no 60 fps here, What do you suggest ? Shall I go WinForms for required performance ?   Thanks for your help !

VS 2010 memory leak?


It happens frequently when I try to copy & paste code inside VS 2010 with following message:

insufficient available memory to meet the expected demands of an operation at this time, possibly due to virtual address space fragmentation. Please try later.

and I check the memory usage with taskmanager on my computer. It is fine.

In order fix it, I need to close VS 2010 and restart again.

So is it a memory leak or can be fixed in some way?

running SharePoint 2010 and on the server w3wp.exe is consuming huge amounts of CPU and Memory bring


I'm running Server 2008 (64bit) with 8Gig of RAM and 4 processors.  We haven't had more than four people in Sharepoint at the same time and performance has been extremely poor (had moments where things run ok but it usually doesn't last for more than a few minutes).  We're not even doing anything advanced.  Just a very small document repository with basic searching.

When I log into the server I can see several w3wp.exe processes running and will spike up to 100% of the CPU.  Memory will be around 100-800 Mb for each process.

Any ideas on how to speed up SharePoint 2010 performance?  Our SharePoint 2003 box runs MUCH faster and has 100+ users and over 3000 documents???



Workflow Designer 4.0 Load() Performance Issue: possible memory leak?


Hello everybody,

I am trying to implement a workflow designer in a windows form application and use the same designer to view different workflows. However, I found the program became slower and slower after loading several workflows.

my steps are as follows:

1. create a wpf user control WFDesigner to package the workflowdesigner;

2. In the user control  WFDesigner , implement a InitiateDesigner method which create a new workflowDesigner instance each time called. I suppose the old workflowDesigner instance would be collected by GC;

3. create a winform application and install the user control created on step 2 to an element host, and put the element host on the form. 

4. add two buttons for test: one will execute  WFDesigner.InitiateDesigner() once and the other will execute it 100 times.

ResXResourceReader memory leak?


I have occasion in my program to compile some CSharp code on the fly, with embedded resources from a .resx file. To do this, I use a System.Resources.ResXResourceReader to read the ResX file and a System.Resources.ResourceWriter to create the binary resource file. However, when I step through the code, I find that ~15MB of memory gets taken up when the ResXResourceReader reaches a Node whose value is a Bitmap, and that memory doesn't get freed even if I explicitly dispose the Bitmap. The ResXResourceReader is getting disposed (it's declared in a using statement). How can I keep this memory leak from happening? Here's the code where I read through the ResX file:


using (System.Resources.ResourceWriter Writer = new System.Resources.ResourceWriter(FileName = System.IO.Path.GetTempPath() + ClassName + ".resources"))

using (ResXResourceReader ResXReader = new ResXResourceReader(this.ResourceFileName))
                foreach (System.Collections.DictionaryEntry Node in ResXReader)

Is this a Memory Leak?



I am developing an app using the MVVM model and I am doing something which I think might create a memory leak.

Basically I have a master ViewModel which contains an ObservableCollection<Child1ViewModel>. Then, each Child1ViewModel contain an ObservableCollection<Child2ViewModel> and so on. I have 4 layers like that.

Each layer contains a reference to its parent. I added a "Delete Self" Command to Child2ViewModel, in a way that it removes itself from its parent's collection:

private void DeleteSelf()
  //First I delete the item through the model:

  //Then I need to remove it from the parent's viewmodel collection:

this.Parent.Children is the ObservableCollection<Child2ViewModel>. Since I am within the element I am deleting, when I remove it from the collection, will the garbage collector detect this and trash the object since the only reference to it was within the ObservableCollection? Or will it not kick in since i'm actuall

How to avoid memory leak when removing a tabitem with usercontrol as content



I am using tabcontrol with tabitems having usercontrols as content.

When I remove a tabitem, I can see that the memory is not freed. I saw this problem has been discussed, but I have not found a complete response. I tried to do in this order, as suggested in some discussions in the forum:




.TabControlTest.Items.Remove(ti); // ti is a TabItem

ti.Content =

SharePoint Health Analyzer Alert: Application Pool Memory Limit


I receive the below alert in the SharePoint Health Analyzer alerts. Looking at the application pools on my WFE (and my app server), nothing is configured to have a memory limit. I'm wondering if this is maybe a permission issue? My permissions appear to be the same as my other 2010 farm, which does not have this issue and the same setup steps were taken. I don't see any messages in the event log on either server that look to be related.

Has anyone else seen this and resolved it? Or do you have any other tips for things I can look into to resolve it? Thanks in advance.


Application pools recycle when memory limits are exceeded.


0 - Rule Execution Failure




Memory leak in .net framework


Hi All,

is it possible to have memory leak in .net framework.If we are using any unmanaged code then there is a possibility, but what if our application is complete a managed application.Is there any chances of memory leak in case of managed code and if "there is a chances" then Can you please explain me how is that possible.Thanks for any help

Changing the graphics on the home page of a SharePoint site

When you create a site in Microsoft Windows SharePoint Services by using the default Team Site template, the home page includes two default graphics. A Windows SharePoint Services graphic appears in the body of the page, and a picture of a house in a circle appears near the site title. You can change these graphics to customize your site. Changing the smaller graphic requires a Windows SharePoint Services compatible Web page editor

Displaying SharePoint lists in Web Parts

When you create a built-in or custom list in Microsoft Windows SharePoint Services, Windows SharePoint Services creates a Web Part, a basic building block of a SharePoint site, to display that list. These Web Parts are called List View Web Parts. Windows SharePoint Services stores List View Web Parts in the site collection Web Part gallery. (The site collection Web Part gallery is the most central gallery of Web Parts for a work group. By default, the gallery name is the name of the site, such as "Our Team Site Web Part Gallery." )

Take a tour of your SharePoint site

What is a SharePoint site for?
A SharePoint site is a Web site that provides a central storage and collaboration space for documents, information, and ideas. A SharePoint site is a tool for collaboration, just like a telephone is a tool for communication, or a meeting is a tool for decision making. A SharePoint site helps groups of people (whether work teams or social groups) share information and work together. For example, a SharePoint site can help you:

Coordinate projects, calendars, and schedules.
Discuss ideas and review documents or proposals.
Share information and keep in touch with other people.

Six easy ways to customize your site using Web Parts in SharePoint

Becoming familiar with Web Part customization techniques gives you a range of page-customization choices. For example, you can customize your site's home page so that it displays the specific information that your team needs. You can rearrange the list items on the home page, add lists, and even change the images on the home page. As you become more familiar with Web Part Page customization techniques, you can build interactive Web Part Pages that makes the data in lists more dynamic and useful, and you can add new Web Parts that provide access to external data and Web services.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend