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 / .NET Framework / Performance / June 2006

Tip: Looking for answers? Try searching our database.

Out Of memory Exception

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Naveen - 20 Jun 2006 20:23 GMT
Hi,
    Our application is a windows service (remoting) .net v1.1. We are trying to
serialize the data table to send it across the wire to the clients. We are
using data table surrogate to send it across the wire.

The problem we are facing is that when the service comes up there could be
more than 50 clients that could request for the snap shot of tables. During
this process the objects are allocated in the Large Object Heap and Gen 2
Segment by the surrogate and the binaryformmater that we use to compress the
data size. Due to heavy load the memory is really fragmented. And this leads
to Out Of Memory Exception.

Does any body have any suggestions to address this?
Alvin Bruney [MVP] - 21 Jun 2006 11:26 GMT
interesting problem, do you have a dedicated server for this? what are your
gc cycles like? seems to me that gc is not getting collected quickly
enough - suspicion is that the code may be hanging on to some roots after
the compression process is complete.

Signature

________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------

> Hi,
> Our application is a windows service (remoting) .net v1.1. We are trying
[quoted text clipped - 13 lines]
>
> Does any body have any suggestions to address this?
Naveen - 21 Jun 2006 12:54 GMT
Hi,
       I checked out the roots but there aren’t any roots to the objects.
The whole issue is that the all the objects are getting primarily allocated
in the LOH and GC collections aren’t happening. I think the whole issue is
that the short lived objects are getting allocated in the LOH.

I wish the binary formatter had method that gives the size memory stream
that is required to convert the object. If there was a method then we could
have implemented a pre allocated buffer pool which could have been reused
(that would avoid temporary LOH objects).

If I would have to throw GC.Collect I don’t see OOM, which I don’t want do.

Naveen

> interesting problem, do you have a dedicated server for this? what are your
> gc cycles like? seems to me that gc is not getting collected quickly
[quoted text clipped - 18 lines]
> >
> > Does any body have any suggestions to address this?
Dan Nemesek - 22 Jun 2006 23:15 GMT
Hi,

When you are seeing the OOM's get thrown what are the values for your
processe's Private Bytes, Virtual Bytes, and Bytes in all Heap perf
counters?

Thanks,

Dan

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2002 Microsoft Corporation.
All rights reserved.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Please reply to the newsgroups only.  
Michel Posseth  [MCP] - 25 Jun 2006 18:22 GMT
I had once a simular problem

I wrote cataloging software  and in some situations i could have 250 clients
to my server object i solved this by using a singleton object this also gave
me the ability to implement a caching mechanism so clients could be served
more quickly

regards

Michel Posseth [MCP]

> Hi,
> Our application is a windows service (remoting) .net v1.1. We are trying
[quoted text clipped - 13 lines]
>
> Does any body have any suggestions to address this?

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.