GC,Windows还是设计问题? [英] GC, Windows or Design problem?

查看:66
本文介绍了GC,Windows还是设计问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有非常大的对象(> 2G)序列化了,我把它加载到某个对象中。

在客户端的网站上我有P4 3G / 512Mb计算机运行的应用程序。

在计算机中,页面文件是3G。但是当从4到500Mb PF使用时从磁盘上加载对象

时,CPU conter为0并且内存保持在

相同值且应用程序不加载文件它只是什么都不做

(恕我直言)

有什么问题以及如何解决它?


TNX


-

什么是dot.NET?只需询问:

"请, www.dotNET.us !"

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 !"

推荐答案




看起来像是设计问题。

一次保留2GB的内存是没有意义的。

你怎么能序列化过多的数据?

我明白序列化会使文件更大。


如果您使用SOAP或XML,那么请考虑BINARY格式化程序。

但是对于BINARY 2GB的数据,我认为没有

很好地解决你的问题。


如果我发现了什么,那就等不及反馈了。


干杯! br />
Marcin
Hi,

It looks like a design problem.
There is no sense in keeping 2GB in memory at once.
How could you serialize too much data?
I understand that serialization makes that file bigger.

If you use the SOAP or XML then think about BINARY formatter.
But in case of BINARY 2GB of data, i think that there is no
good solution for your problem.

If i miessed something then don''t wait with feedback.

Cheers!
Marcin
我有非常大的对象(> 2G)序列化,我正在将它加载到某个对象中。
在客户端'' s网站我有运行应用程序的P4 3G / 512Mb计算机。
在计算机中,页面文件是3G。但是在从400-500Mb PF使用时从磁盘加载对象时,CPU conter为0并且内存保持在相同的值,并且应用程序不再加载文件它只是什么都不做
(恕我直言)
问题是什么以及如何解决?

TNX
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



在其他计算机(服务器)上创建的文件和它的二进制


其他想法?


"MarcinGrzêbski" <毫克******* @ taxussi.no.com.spam.pl>在消息中写道

news:d6 ********** @ nemesis.news.tpi.pl ...
The file created on other computer (server) and it''s binary

Other ideas?

"Marcin Grzêbski" <mg*******@taxussi.no.com.spam.pl> wrote in message
news:d6**********@nemesis.news.tpi.pl...

<它看起来像是一个设计问题。
同时保留2GB的内存是没有意义的。
你怎么能序列化过多的数据?
我知道序列化会使文件更大。

如果您使用SOAP或XML,那么请考虑BINARY格式化程序。
但是对于BINARY 2GB的数据,我认为没有好的解决方案可以解决您的问题。

如果我发现了什么,那么就等不及反馈了。

干杯!
Marcin
Hi,

It looks like a design problem.
There is no sense in keeping 2GB in memory at once.
How could you serialize too much data?
I understand that serialization makes that file bigger.

If you use the SOAP or XML then think about BINARY formatter.
But in case of BINARY 2GB of data, i think that there is no
good solution for your problem.

If i miessed something then don''t wait with feedback.

Cheers!
Marcin
我有非常大的对象(> 2G)序列化,我将它加载到一些
对象中。在客户的网站上我有运行
应用程序的P4 3G / 512Mb计算机。在计算机中,页面文件是3G。但是当在~400-500Mb PF使用时从磁盘加载对象时,CPU conter comed为0并且内存保持相同的值并且应用程序不再加载
文件什么都不做(恕我直言)
有什么问题以及如何解决?

TNX
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






Tamir Khason < TA ********** @ tcon-NOSPAM.co.il>在留言中写道

新闻:%2 **************** @ TK2MSFTNGP09.phx.gbl ...

"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
我有非常大的对象(> 2G)被序列化,我正在将它加载到一些
对象中。在客户的网站上我有P4 3G / 512Mb计算机,其中应用程序正在运行。在计算机中,页面文件是3G。但是当在~400-500Mb PF使用时从磁盘加载对象时,CPU conter为0并且内存
保持相同的值,应用程序不再加载文件
什么都不做(恕我直言)
有什么问题以及如何解决?

TNX

-
什么是dot.NET?请问:
请, www.dotNET.us !"
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 !"



你不能简单地在Windows(32位)上创建这样一个大对象(我不会在OO设计实践中将其称为对象

) )。您将需要创建单个对象的最大内存
内存是:

2GB - 运行时,BCL和您的代码占用的空间,是~1.4GB。

这个值是理论上的最大值,实际大小可以小得多

,具体取决于堆的碎片级别。


问题是你是如何管理这样的对象的?要序列化?它好像你有一个磁盘上的文件要反序列化到一个

对象,但实际上''对象''它只不过是一个字节流

而不是真正的对象(单个结构化数据单元),所以我建议你使用数据作为文件流,可能包含较小的块

可以视为对象的结构化数据。


Willy。


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.


这篇关于GC,Windows还是设计问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆