垃圾收集每隔100秒 [英] Garbage Collection every 100 seconds

查看:199
本文介绍了垃圾收集每隔100秒的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

难道任何一个遇到这样一个场景:在高内存分配负荷应用程序执行的第二代收集每隔100秒?

Did any one encountered a scenario where application under high memory allocation load performed second generation collection every 100 seconds ?

我们使用8-16 GB的物理内存的64位服务器。

We using 64-bit server with 8-16 GB of physical memory.

的应用具有几个GB的什么被存储在高速缓存中,不能从它清洗,因为它的实际使用的应用程序的数据。此外,它受到了很多的要求,即在加工过程中分配GEN 0对象。

Application has several GB of data what is stored in cache and can't be cleaned from it because it's actually used by application. In addition it receives a lot of request that allocate GEN 0 object during processing.

什么是奇怪,我是GEN 2集进行埃维百秒像时钟的事实。我想这shuld少predictable

What it's odd to me is the fact what GEN 2 collection performed evey 100 seconds like a clock. I was thinking it shuld be less predictable

推荐答案

如果你是在高内存负载,并且使用了大量的对象,则是:GC将忙碌起来......如果是打根-2,然后,它听起来就像你有一个的很多的中/长寿命对象游逛......

If you are under high memory load, and using a lot of objects, then yes: GC will get busy... if it is hitting gen-2, then it sounds like you've got a lot of mid/long-life objects hanging around...

我假设内存使用是相当稳定的?以上的可以的指示某种伪泄漏(可能通过静态事件持有到太多的对象,等等),或者可能只是意味着你有一个高的内存使用情况!

I'm assuming that memory usage is fairly stable? The above could indicate some kind of pseudo-leak (perhaps holding onto too many objects via static events, etc), or could just mean that you have a high memory usage!

多少内存是您使用?你可以考虑x64和大量的内存?另外,将在3GB开关(86)你买几个字节?

How much memory are you using? Could you consider x64 and a ton of memory? Alternatively, would the 3gb switch (x86) buy you a few more bytes?

这篇关于垃圾收集每隔100秒的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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