Garbage collection (GC) will usually kick in when a memory allocation failure occurs.
当出现内存分配失败的时候,通常将启动垃圾收集(GC)。
The opening element shows what triggered the collection in this case: an allocation failure.
开始的元素展示了在此案例中触发收集的事件:一个分配失败。
The following line shows the size of the allocation request that triggered the allocation failure.
下面这行代码展示了触发分配失败的分配请求大小。
Memory allocation failure happens when the heap has reached maximum size and cannot allocate more memory.
当堆达到最大大小,无法再分配内存时,就会发生内存分配失败。
Increasing the JVM heap size permits more objects to be created before an allocation failure occurs and triggers a garbage collection.
通过增加jvm堆大小,可以在出现分配故障并触发垃圾收集之前创建更多对象。
This has the side-effect of increasing the interval times between GCs, and increasing the time it takes to process an allocation failure.
这样做的副作用是GCs之间的间隔时间增加,从而增加处理分配失败所需的时间。
The trigger for a GC is usually an allocation failure - this occurs when the allocation of an object to the JVM heap fails due to insufficient available space.
GC的触发器通常是一个分配失败。分配失败是指,由于可用空间不足,无法将一个对象分配到jvm堆。
This entry lets us know that there was an allocation failure, which presents itself when there is not enough contiguous space in the heap to allocate the object.
通过这个条目,我们能够知道有一个分配失败,当heap内没有足够的连续空间可以分配给对象时,就会发生分配失败。
This entry lets us know that there was an allocation failure, which presents itself when there is not enough contiguous space in the heap to allocate the object.
通过这个条目,我们能够知道有一个分配失败,当heap内没有足够的连续空间可以分配给对象时,就会发生分配失败。
应用推荐