Groups | Blog | Home
all groups > dotnet remoting > february 2005 >

dotnet remoting : OutOfMemoryException


Joe
2/27/2005 4:34:45 PM
I'm trying to return a DataTable with 146k rows * 41 columns. Returning
smaller sets works but the larger ones throw this exception. I saw there was
a bug in 1.0 sp 1 &2 but I thought it was fixed by now. Are there any
suggestions on what could be the cause?

The remoting object is being hosted by IIS and the machine has 2 gigs of
physical ram. w3wp.exe shows a max usage of 503 megs of ram.

Alexander Shirshov
2/27/2005 6:47:54 PM
Joe,

Can you save the DataSet to a file using WriteXml and tell us its size?

Sorry, I don't have the answer but can suggest what might be a workaround.
DataSet always serilaizes to XML. If values you return are small the overhead
XML verbosity imposes can be enormous. You could try to do your own serialization.


Alexander

[quoted text, click to view]


M.Posseth
2/28/2005 8:39:35 AM
Joe

if you are really passing a datatable object , try it with a dataset this
might solve your problem

i noticed already strange behaviors with datable objects and remoting /
webservices

Even better with webservices you can`t pass datatables at all only when they
are contained inside datasets this behavior is by design
( in my opinion this breaks good OOP but that is another story )

http://support.microsoft.com/default.aspx?scid=kb;en-us;306134



--
Met vriendelijke groet
Kind regards,

Michel Posseth
Software Developer
Microsoft Certified Professional


[quoted text, click to view]

AddThis Social Bookmark Button