Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / July 2005

Tip: Looking for answers? Try searching our database.

Memory Usage in web service???

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dave Stienessen - 13 Jul 2005 16:16 GMT
Hi all,
I have a web service that (for better or worse) returns rather large
xmlDataDocuments (up to 150MB) I know - this is huge for a web service call,
but this is a service that's used by few users (less than 10) so I'd prefer
not to rip it apart right now - my question is can someone explain the
following memory usage

first, my code looks like (pseudo coded)
DataSet ds = getDataSet(); // memory usage of w3wp is at about 250MB after
this
XmlDataDocument oDoc = new XmlDataDocument(ds); // memory usage still at 250
MB
return oDoc; // executing this jumps w3wp to over 800 MB!!!

can someone please give me the reason why?  Even if it copies the data to
stream it out, I wouldn't expect more than about 400-500MB of memory used???

Thanks
Signature

Dave Stienessen

Jason L Lind - 13 Jul 2005 18:14 GMT
I am fairly certain it has to do with the DataSet being serialized, up until
then it is native code, but once you do that return it has to convert it to
XML.

You might want to look into compressing that some how, it would require
custom serializer-deserializer, but if the calls are going to be that large
it probably would be worth while to investigate that.

Good luck!

Jason Lind

> Hi all,
> I have a web service that (for better or worse) returns rather large
[quoted text clipped - 14 lines]
>
> Thanks
Dave Stienessen - 13 Jul 2005 20:01 GMT
I'd agree, except I serialized the XmlDataDocument to a file myself and that
was 150MB - so if the serialized dataset (AKA XML) is 150MB and my initial
hit to do the work to get the dataset into memory was 250MB, thats ~400MB -
where's the other 400MB of RAM going?

Signature

Dave Stienessen

> I am fairly certain it has to do with the DataSet being serialized, up until
> then it is native code, but once you do that return it has to convert it to
[quoted text clipped - 26 lines]
> >
> > Thanks
dhow - 14 Jul 2005 03:34 GMT
If u can divide the returns into 1M per, it will be faster than now.
In my project , the webservice with division returns has a good performace.

> Hi all,
> I have a web service that (for better or worse) returns rather large
[quoted text clipped - 14 lines]
>
> Thanks

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.