Re: GC, Windows or Design problem?
- From: "Willy Denoyette [MVP]" <willy.denoyette@xxxxxxxxxx>
- Date: Fri, 20 May 2005 12:31:37 +0200
"Tamir Khason" <tamir-NOSPAM@xxxxxxxxxxxxxxxxx> wrote in message
news:%23qA1BfRXFHA.1384@xxxxxxxxxxxxxxxxxxxxxxx
>I have VERY BIG object (>2G) serialized and I'm loading it into some
>object. In client's site I have P4 3G/512Mb computer where the application
>running. In the computer the page file is 3G. But while loading the object
>from disk on ~400-500Mb PF usage the CPU conter comed to 0 and memory
>remains in the same value and application do not load the file any more it
>just do nothing (IMHO)
> What's the problem and how to solve it?
>
> TNX
>
> --
> What dot.NET? Just ask:
> "Please, www.dotNET.us !"
>
You can't simply create such big object (and I would not call this an object
in terms of OO design practices) on windows (32 bit). The largest chunk of
memory you will ever have to create a single object is:
2GB - the space taken by the runtime(s), the BCL and your code , is ~1.4GB.
This value is a theoretical maximum, the practical size can be much smaller
depending on the fragmentation level of the heap(s).
Question is how did you ever managed such "object" to get serialized? It
looks like you have a file on disk that you want to deserialize to an
object, but actually the 'object' it's nothing more than a stream of bytes
and not really an object (a single unit of structured data), so I suggest
you use the data as a file stream probably consisting of smaller blocks of
structured data that can be treated as objects.
Willy.
.
- Follow-Ups:
- Re: GC, Windows or Design problem?
- From: Tamir Khason
- Re: GC, Windows or Design problem?
- References:
- GC, Windows or Design problem?
- From: Tamir Khason
- GC, Windows or Design problem?
- Prev by Date: Re: httpwebrequence cookie problem
- Next by Date: Re: One of those trick questions
- Previous by thread: Re: GC, Windows or Design problem?
- Next by thread: Re: GC, Windows or Design problem?
- Index(es):
Loading