Newbie: System.OutOfMemory Exception in ASP.NET 2.0 web service ?


N

Navin Mishra

Hi,

In load testing of our ASP.NET 2.0 web service, we are getting
System.OutOfMemory exception sometimes. In windows event log, we see entries
like the following:

Event code: 3005

Event message: An unhandled exception has occurred.

Event time: 3/1/2007 5:07:46 PM

Event time (UTC): 3/2/2007 1:07:46 AM

Event ID: 766f3673f14f4338813be4f35285c93f

Event sequence: 227222

Event occurrence: 1

Event detail code: 0



Process information:

Process ID: 1636

Process name: w3wp.exe

Account name: DOGWOOD\OSWeb



Exception information:

Exception type: OutOfMemoryException

Exception message: Exception of type 'System.OutOfMemoryException' was
thrown.



Thread information:

Thread ID: 14

Thread account name: DOGWOOD\OSWeb

Is impersonating: False

Stack trace: at System.Uri.ReCreateParts(UriComponents parts, UInt16
nonCanonical, UriFormat formatAs)

at System.Uri.GetEscapedParts(UriComponents uriParts)

at System.Uri.GetComponentsHelper(UriComponents uriComponents, UriFormat
uriFormat)

at System.Uri.GetComponents(UriComponents components, UriFormat format)

at System.Uri.GetLeftPart(UriPartial part)

at System.Web.Services.Protocols.ServerProtocol.CreateKey(Type
protocolType, Type serverType)

at System.Web.Services.Protocols.SoapServerProtocol.Initialize()

at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type,
HttpContext context, HttpRequest request, HttpResponse response, Boolean&
abortProcessing)

at
System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type
type, HttpContext context, HttpRequest request, HttpResponse response)

at
System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(HttpContext
context, String verb, String url, String filePath)

at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String
requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)

at
System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously)



...



EventType clr20r3, P1 w3wp.exe, P2 6.0.3790.1830, P3 42435be1, P4 mscorlib,
P5 2.0.0.0, P6 4333ab80, P7 116e, P8 29, P9 system.outofmemoryexception, P10
NIL.



Has anybody seen that ? Is it not .NET is garbage collected like Java and so
in theory it shouldn't happen ?

What are recommended problem diagnosis and resolution steps ?



Thanks in advance and regards



Navin
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top