RE: OutOfMemoryException: Webservice, DataSet and file transport

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Pieter (Pieter_at_discussions.microsoft.com)
Date: 08/12/04


Date: Thu, 12 Aug 2004 07:33:04 -0700

Tom,

Did you try calling the webservice from a desktop pc?

One thing I know about datasets is that they tend to consume a lot of memory
and can take a long time to load.

Maybe you can explain what you're trying to achieve with your application.

Pieter

"Tom De ceuster" wrote:

> Pieter,
>
> I keep the dataset in memory. I don't use the SQL server CE database.
> I get the memory Exception before the webservice method returns.
>
> regards,
> Tom
>
> "Pieter" wrote:
>
> > Tom,
> >
> > Do you keep this dataset in memory? Or are you using it to feed a SQL Server
> > CE database? In the latter case I experienced a similar problem that was
> > caused by a SqlCeCommand object that wasn't disposed after using it.
> >
> > regards,
> > Pieter
> >
> >
> >
> > "Tom De ceuster" wrote:
> >
> > > Hi,
> > >
> > > For transportation of a file, approx 850kB, I use a webservice which return
> > > a dataset with one DataTable and a row. That row holds the file. After a
> > > while I get an OutOfMemoryException on my Pocket PC device. The memory usage
> > > increments exponential from 20MB -> 24MB, and my file is not that big.
> > >
> > > Is this a known problem with the Compact Framework 1.0 SP2, on a Windows CE
> > > 4.2 device? Or by a certain memory allocation for the dataset?
> > > Please any information is welcome.
> > >
> > > Regards,
> > > Tom



Relevant Pages

  • RE: Memory problems - WinDbg and SOS: Who recognizes this pattern?
    ... generally configuration error will cause a rapid & direct exception or ... resources are batch compiled so as to avoid potential heap memory ... Is there many COM interop or PInvoke code in your webservice, ... |> | ephemeral segment allocation context: ...
    (microsoft.public.dotnet.framework.performance)
  • RE: Memory problems - WinDbg and SOS: Who recognizes this pattern?
    ... Seems you're encountering series of problems in your production webservice. ... For such memory or performance issue in ASP.NET web application, ... A major part of the heap ... | ephemeral segment allocation context: ...
    (microsoft.public.dotnet.framework.performance)
  • Possible memory leak ?
    ... Public Function test() As String ... the memory used by my webservice and/or executable never stop growing until ... kill aspnet_wp.exe and/or executable to get back the memory used. ...
    (microsoft.public.dotnet.framework.adonet)
  • aspnet_wp process recycles itself
    ... new process "a.exe" is started from within the webservice using ... once it reaches a maximum of 60% of the total virtual memory. ... How can we get a handle to the recycle event so that the "a.exe" process ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Garbage collection
    ... Tom> True, but why does Python hang on to the memory at all? ... Tom> certain amount of time, as allocation times are ...
    (comp.lang.python)