Therefore, to use this method of garbage collection, the collector must be integrated with the programming language.
因此,为使用这种垃圾收集方法,垃圾收集器必须与编程语言集成在一起。
In this case study, we examine how the choice of garbage collection policy affects application performance with a fairly typical three-tiered client-server application.
在这个案例中,我们用典型的三层客户机-服务器应用程序来研究垃圾收集策略的选择如何影响应用程序性能。
By matching the GC policy used to the type of workload and choosing suitable heap parameters, the impact of garbage collection on the application can be reduced.
通过匹配工作负载类型及其使用的GC策略并选择适当的堆参数,应该能够减少垃圾收集对应用程序的影响。
This will give you information on the frequency, timing, and duration of garbage collection operations.
这会使您得到垃圾收集操作的频率、定时和持续时间等信息。
One obvious way to optimize application performance is to choose a GC policy that minimizes any negative impact of garbage collection pauses.
优化性能的一个明显方法是选择能够最小化垃圾收集停顿时间带来的消极影响的GC策略。
A second, less obvious, way is to choose a policy that maximizes the benefits of garbage collection.
第二种不是很明显的方法是选择能够最大化垃圾收集的益处的策略。
From this simplistic definition of garbage collection, you can deduce that the system is not doing any application work while garbage collection is happening.
根据这个简化的垃圾收集定义可以推断出,在执行垃圾收集时系统不会执行任何应用程序工作。
Your application might be experiencing long pauses or periods of unresponsiveness, and you might want to identify or rule out garbage collection as the cause of the pauses.
您的应用程序可能经历了长时间的停顿或长的无响应时间,您想要从导致停顿的原因中确定或排除垃圾收集。
This will increase CPU cycles with garbage collection of UI objects.
这会随着UI对象的垃圾收集而增加CPU周期。
The degree to which the pause times will affect response times is also determined by the heap size and frequency of garbage collection.
停顿时间将影响响应时间的程度也是由堆的大小和垃圾收集的频率决定的。
As the nursery size is expanded and the time between nursery collects increases, you do less copying on average, and the overhead of garbage collection drops.
随着托儿所空间大小和托儿所收集之间的时间间隔增加,需要复制的数据量通常会随之减少,垃圾收集的开销也会随之降低。
Obviously, a lot of garbage collection can really slow down your application.
显然,大量的垃圾收集可以真正减慢应用程序的运行速度。
Garbage collection works in a number of configurable ways through the deferred page space allocation policy.
可以通过延迟的分页空间分配策略以多种可配置的方式执行垃圾收集。
The 1.4.1 JDK further improves the effectiveness of garbage collection by adding new multithreaded collection options for multiprocessor systems and very large heaps.
JD K 1.4.1通过增加新的针对多处理器系统和非常大的堆的多线程收集选项,进一步改进了垃圾收集的效率。
Setting to the latter may increase the incidences of garbage collection and make more pages available, but may impact performance.
设置为后者可以提高垃圾收集的效果,让更多页面可用,但是可能影响性能。
This naturally enables the application to run for a longer period of time between garbage collection (GC) cycles.
这通常可以让应用程序增加各垃圾收集(GC)周期之间的间隔时间。
However, the opposite is also true: a wise choice of garbage collection parameters can actually make an application run more quickly.
但反过来也正确:明智地选择垃圾收集参数实际上会使应用程序运行速度更快。
Figure 3 charts the garbage collection intervals for each of the four heap sizes.
图3展示了四种堆大小的垃圾收集间隔时间。
This provides a good balance of higher garbage collection intervals and lower pause times, which results in a small amount of time spent in garbage collection.
这在较长垃圾收集间隔时间与较短暂停时间之间达到了平衡,从而减少了垃圾收集所花费的时间。
Your tuning efforts in this area involve making sure the heap can grow to the size your application needs and tuning the garbage collection parameters to avoid the effects of heavy garbage collection.
这方面的调优包括确保堆可以增长到应用程序需要的大小,以及通过调整垃圾收集参数避免垃圾收集的影响过大。
If you find the length of the garbage collection runs are too long, you can tune your JVM to use a different garbage collection algorithm (the details depend on the version and vendor of your JVM).
如果发现垃圾收集的运行时间太长,可以考虑让JVM使用另一种垃圾收集算法(具体细节取决于JVM的版本和厂商)。
The cost of a nursery garbage collection is relative to the amount of data that survives (Figure 5).
托儿所垃圾收集的成本与幸存的数据量有关(参见图5)。
The garbage collection logs also indicate the time at which the collection appears and the length of time the garbage collection takes.
垃圾收集日志还会指出发生垃圾收集的时间以及垃圾收集花费的时间。
They are useful classes for specific problems, although, due to the nature of garbage collection, they might not prove as useful as you originally thought.
由于垃圾收集有着特定的性质,所以引用类实际上可能没有您原来想像的那么有用,尽管如此,它们对于特定问题来说还是很有用的类。
Once we've covered that, we'll briefly touch on garbage collection of classes; so if are comfortable with that, you can skip ahead.
在此之后,我们还将简单讨论一下类的垃圾回收;如果你对此已非常熟悉,则可以跳过这部分内容。
The time spent in GC pauses for the mark and sweep phases of a garbage collection are based on the number of live objects on the heap.
用于垃圾收集的标记和清扫阶段的GC暂停时间基于堆上的活动对象的数量。
This creates the best balance between the rate and length of garbage collection cycles.
这样就能够在垃圾回收周期的频率和长度之间实现最佳的平衡。
The pause time is the amount of time that a garbage collection cycle took to complete.
暂停时间是垃圾收集周期完成所需的时间。
The pause time is the amount of time that a garbage collection cycle took to complete.
暂停时间是垃圾收集周期完成所需的时间。
应用推荐