gc 垃圾回收堆的行为统计。
可能位于垃圾回收堆中的对象的地址。
The addresses of objects that may be in the garbage collection heap.
电池应该在合适的场合被循环利用,而不是扔在垃圾堆,而纸张和便利贴如果单独收集就很容易被回收再利用。
Batteries should be recycled at the appropriate locations, not thrown in the garbage and paper and post-it notes can easily be recycled if kept separate.
请注意,托管堆在分配新对象方面非常有效,而垃圾回收器在收集大量生存期较短的小型对象方面非常有效。
Note that the managed heap is very efficient at allocating new objects, and the garbage collector is very efficient at collecting lots of small and short-lived objects.
这可以消除基于.NET的应用程序中托管堆大小常见的锯齿模式,并且减少了应用程序为执行垃圾回收而花费的时间。
This can get rid of the sawtooth pattern often seen for the managed heap size in.net-based applications, and reduces the time an application spends performing garbage collection.
因此,随着可用堆内存的减少而导致更频繁的垃圾回收,性能可能会降低。
As a result, performance can degrade as the decreased available heap memory leads to more frequent garbage collection.
在使用默认的GC策略的情况下,IBMJVM 在耗尽所有堆之后才调用垃圾回收。
Using the default GC policy, the IBM JVM will consume the entire heap before invoking garbage collection.
结果是需要执行垃圾收集以便回收堆中的空间。
The result is that garbage collection will need to be performed in order to reclaim space in the heap.
创建许多对象还容易增加堆碎片,而这会导致出现更多的垃圾回收周期。
Creating many objects also tends to increase heap fragmentation, which leads to even more garbage collection cycles. For example, do not create objects prematurely.
第一,提高堆空间的大小,防止在一个迭代中出现垃圾回收。
First I increased the Eden heap space size to prevent garbage collection from running during a single iteration of the bench. For this I used the command line.
每个星期,我都会尽力去记录这些净化的行程,不管这些物品最终是被送到了垃圾堆、回收站、托运站或是低价回收站。
I will do my best to document these purge trips every week, whether the stuff goes to the landfill, the recycling bin, the consignment shop or Goodwill.
垃圾收集(GC)通过删除堆中其他任何对象不再引用的对象来回收一部分堆。
Garbage collection (GC) reclaims portion of the heap by removing objects not referenced by any other object in the heap.
我们从情况最糟的房间入手,检查堆在地板上的每样东西,把它们分门别类地放在标有“保留”、“垃圾”、“回收”、“捐赠”和“卖掉”的盒子里。
We started in the worst room in the house and first went through every item that was stacked in piles on the floor, sorting them into different “Keep”, “Trash”, Recycle”, “Goodwill”, and “Sell” boxes.
反过来,如果堆过大,那么分析堆和执行垃圾回收时将出现很长时间的暂停。
Conversely, if the heap is too large, long pause times will occur each time the heap is analysed and garbage collected.
切换到分代垃圾回收可以改善IBMJVM 的性能,对于较大的堆而言,性能可以提升 5% 左右。
Switching to generational GC can improve performance on IBM JVMs, particularly for larger heap sizes, typically by around 5%.
如果垃圾回收每10秒发生超过一次,或者堆利用率超过堆的70%,那么可以考虑增加堆大小。
If garbage collection is occurring more than once every 10 seconds, or the heap utilization is running more than 70% of the heap, then you'll want to consider increasing the heap size.
然后垃圾回收器工作,试图穿过该托管堆,此时进程就会崩溃了。
Later on when the garbage collector is doing its work, it tries to go through the heap and things go bad so the process crashes.
在中国宝康世界环境日上,一名男子在垃圾堆里寻找可回收的废物。
A man looks for recyclable waste at a garbage dump site on World Environment Day in Baokang, China.
垃圾回收器执行回收,尝试为对象释放第0级托管堆中的地址空间。
The garbage collector performs a collection in an attempt to free address space in generation 0 for the object.
利用CLR探查器,可以查看进程的托管堆并调查垃圾回收器的行为。
The CLR Profiler enables you to view the managed heap of a process and investigate the behavior of the garbage collector.
然后,垃圾回收器升级这些对象,并考虑第1级托管堆的这一部分。
The garbage collector then promotes these objects and considers this portion of the managed heap generation 1.
尽管还是个小学生,迈克却有着不一般的爱好——垃圾车、垃圾堆、垃圾回收——和垃圾有关的都是他的最爱,而他的理想是:长大后成为一名垃圾搬运工。
The grade schooler is passionately interested in garbage trucks compost and recycling--and dreams of being a trash hauler when he grows up.
因而,垃圾回收对象中所包含的数据可能仍存在于未分配内存的内存堆中。
Thus the data contained within a garbage collected object may still be present in the memory heap in unallocated memory.
如果应用程序在第0级托管堆已满时尝试新建对象,垃圾回收器将会发现第0级托管堆中没有可分配给该对象的剩余地址空间。
If an application attempts to create a new object when generation 0 is full, the garbage collector discovers that there is no address space remaining in generation 0 to allocate for the object.
这里有超出通常回收利用的原因:笨重的家庭废弃物占用垃圾堆里太多空间。
There are reasons to go beyond the usual recycling: Unwieldy household toss-outs take up tons of space in landfills.
实际上,垃圾回收器在第0级托管堆已满时执行回收。
In reality, the garbage collector performs a collection when generation 0 is full.
垃圾回收器执行第0级托管堆的回收后,会压缩可访问对象的内存,如本主题前面的释放内存中所述。
After the garbage collector performs a collection of generation 0, it compacts the memory for the reachable objects as explained in Releasing memory earlier in this topic.
在执行第0级托管堆的首次回收并把可访问的对象升级至第1级托管堆后,垃圾回收器将考虑第0级托管堆的其余部分。
After the garbage collector performs its first collection of generation 0 and promotes the reachable objects to generation 1, it considers the remainder of the managed heap generation 0.
在执行第0级托管堆的首次回收并把可访问的对象升级至第1级托管堆后,垃圾回收器将考虑第0级托管堆的其余部分。
After the garbage collector performs its first collection of generation 0 and promotes the reachable objects to generation 1, it considers the remainder of the managed heap generation 0.
应用推荐