Getting deadlocks error in content database.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I am getting deadlock errors in content database during the performace test
ramp up to 10 users. From the primary investigation, I found following
possibility of the deadlock errors in content database.

I have witnessed below warning logs in MOSS logs.

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: {70332369-F319-4431-9470-09243FFD40A0} To
determine where this object was allocated, create a registry key at
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server
Extensions\HeapSettings. Then create a new DWORD named SPRequestStackTrace
with the value 1 under this key.

An SPRequest object was reclaimed by the garbage collector instead of being
explicitly freed. 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.
Allocation Id: {9F4F6EFE-15F2-4F64-9516-5E9E24497D43} To determine where
this object was allocated, create a registry key at
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server
Extensions\HeapSettings. Then create a new DWORD named SPRequestStackTrace
with the value 1 under this key.

Potentially excessive number of SPRequest objects (9) currently unreleased
on thread 7. Ensure that this object or its parent (such as an SPWeb or
SPSite) is being properly disposed. This object is holding on to a separate
native heap. Allocation Id for this object:
{C544828A-B76E-446A-8B6C-B5209BF41066} Stack trace of current allocation:
at Microsoft.SharePoint.SPRequestManager.Add(SPRequest request, Boolean
shareable) 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_Req...
53 heaps created, above warning threshold of 32. Check for excessive SPWeb
or SPSite usage.

The frequncy of the above warning message is very high, and I feel due to no
proper dispose method and close use the object is not relasing the lock and
resultant sharepoint database procedures throws deadlock errors.

Am I thinking on right direction, or there could be other possible reasons?

Any input would be very appriciated.

Kind Regards.
.



Relevant Pages

  • Re: Getting deadlocks error in content database.
    ... then I would suggest using the recently released tool SPDisposeCheck which will analyze your assemblies and report on the lines where potential memory leaks might be occuring due to non-disposal of SPWeb and SPSite objects. ... An SPRequest object was not disposed before the end of this thread. ... dispose of this object ...
    (microsoft.public.sharepoint.portalserver)
  • Re: Getting deadlocks error in content database.
    ... memory leaks might be occuring due to non-disposal of SPWeb and SPSite ... An SPRequest object was not disposed before the end of this thread. ... dispose of this ...
    (microsoft.public.sharepoint.portalserver)
  • Re: Access Lock Remains after Connection Closed - OLE DB / Jet
    ... If I open an Access 2000 version database and read data from it and at ... close and dispose, the lock still remains. ... possibility that is is your connection object that is the source of the ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Connection handling
    ... You state that your data is coming through a data adapter. ... does not go back to the database but simply to the dataset. ... I would not dispose the connection each time unless the ... object also has a dispose method. ...
    (microsoft.public.dotnet.framework.windowsforms.databinding)
  • Re: Connection handling
    ... You state that your data is coming through a data adapter. ... does not go back to the database but simply to the dataset. ... I would not dispose the connection each time unless the ... object also has a dispose method. ...
    (microsoft.public.dotnet.framework.adonet)