GC
abbr. 千兆周(gigacycle);车底距地高(Ground Clearance);制导计算机(Guidance Computer)
2026-05-06 08:33 浏览次数 19
abbr. 千兆周(gigacycle);车底距地高(Ground Clearance);制导计算机(Guidance Computer)
Makai GC马凯球场
glucocorticoid GC糖皮质激素
EPL Gc本质安全型
GC rate一般抵押利率
Sensory GC感官气相色谱分析法
GC Busan车轮战
SC GC护身符
portable GC便携式车载气相色谱仪
GC法GC method
The optimal heap settings will depend on the GC policy, described in the next section.
最佳的堆设置取决于GC策略,这将在下一小节进行讨论。
The sawtooth nature of this section is again because of the interleaving of the GC and application to preserve low pause times.
造成此段呈锯齿状的原因同样是因为GC和应用程序交错执行以便保持低暂停时间。
As the example of fixing the heap above showed, an application may sometimes run faster than it did before being tuned but still be marked by an unchanged GC overhead or even longer mean pauses.
正如上文所示的固定堆示例,应用程序可能有时的运行速度比调整前快,但仍然由未改变的GC开销甚至更长的平均暂停时间表示。
So, by increasing the heap size the interval between GC pauses will increase, which will give the application more time to execute.
因此,通过增加堆大小,可以增加GC暂停之间的间隔,从而为应用程序提供更多的执行时间。
However, in most applications, GC pauses make only a small contribution to the maximum pause time, as you「ll see in our first case study.
但是,在大多数应用程序中,GC停顿对最大停顿时间的影响很小,您将在我们的第一个案例 中见到。
We must first understand that the GC not only manages objects but also maintains a separate reference object to the actual object.
我们必须首先理解这个GC不仅管理对象,而且还会维护对实际对象的一个单独的引用对象。
One obvious way to optimize application performance is to choose a GC policy that minimizes any negative impact of garbage collection pauses.
优化性能的一个明显方法是选择能够最小化垃圾收集停顿时间带来的消极影响的GC策略。
Note that local minima and maxima are normal and expected because the free space only increases during a GC cycle and correspondingly decreases when the application is active and allocating.
注意,容易实现本地的最小和最大空间,因为自由空间仅在GC循环期间增加并且在应用程序处于活动时和进行分配时相应减少。
However, the right GC policy can also deliver significant performance advantages to an application.
不过,正确的GC策略能够为应用程序交付重要的性能优势。
The time during which the application is halted is referred to as pause time because application progress is paused for the GC to reclaim free space.
应用程序暂停的持续时间被称作暂停时间,因为这段时间暂停了应用程序进程使GC可以回收自由空间。
If an application is under-loaded - that is, if it doesn」t have enough work to do - the rate of GC is not a great performance indicator because the rate will drop if no work is coming in.
如果应用程序负载不足—即它没有足够的工作可做—,则GC的速率不可作为良好的性能指示器,因为如果没有工作可做,速率将会下降。
It can then perform GC work for the remainder of the quantum, scheduling itself back to sleep and resuming the JVM when the quantum end time approaches.
然后才能在剩余的时间内执行gc工作,在时间量临近结束时将自身调回休眠状态并恢复JVM的运行。
It makes recommendations on GC usage, identifies hot methods, highlights areas of lock contention, and provides information on the environment the application is running in.
它提供关于GC使用的建议、识别热方法、突出显示锁争用区域,提供关于应用程序的运行环境的信息。
As you know value types are allocated on the stack unlike reference types which are allocated on the GC heap.
就像你知道的那样,值类型是分配在栈上的,而引用类型是分配在GC堆上的。
First let's see how GC gets memory from the OS.
首先我们看看GC怎么从操作系统获取内存吧。
Larger objects mean a bigger heap to hold the same amount of data while maintaining similar GC performance, which makes the OS and hardware memory system slower.
更大的对象意味着用更大的堆来保存相同大小的数据,同时维持类似的gc性能,这会拖慢操作系统和硬件内存系统。
Managing GC activities with these two premises in mind dramatically increases the likelihood that an application can achieve its RT goals.
牢记这两个前提并用之管理GC行为将显着增加应用程序实现其RT目标的可能性。
If this scenario is encountered, a choice must be made to decrease the target utilization to allow for more GC time, increase the heap size to allow for more allocations, or a combination of both.
如果遇到这种情形,必须作出选择来降低目标利用率,以便提供更多的GC时间,增加堆大小以支持更多的应用程序,或将此二者结合使用。
Because of these complexities, the recommended use of immortal and scoped memory is limited to components that cannot tolerate GC pauses.
由于这些复杂性,建议只对那些不能够忍受GC暂停的组件使用不朽和作用域内存。
Generational garbage collectors offer relatively short average GC pauses, but the cost of old-space collections can cause the standard deviation of these pause times to be quite large.
分代垃圾收集器提供了相对较短的平均GC暂停时间,但是旧空间收集的开销可能导致这些暂停时间的标準偏差非常大。
When you allocate the children of an object, if the children need to have similar life time as their parent they should be allocated at the same time so they will stay together on the GC heap.
当你分配对象的子对象时,如果子对象的生存时间和父对象基本相同,他们应该被同时分配以使他们在GC堆中的位置也是相近的。
Often a very simple change, like changing the GC policy that your app USES, can make a big improvement.
通常,非常简单的更改(如更改应用程序使用的GC策略)会产生非常大的改进。
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策略并选择适当的堆参数,应该能够减少垃圾收集对应用程序的影响。