As a result, the allocation of a sufficiently large object can fail if no free chunk of memory is large enough to satisfy the request.
结果,如果没有足够大的自由内存块能够满足请求的需要,则分配一个很大的对象就会失败。
In this case, the JVM tuning resulted in varying improvements for the three run time modes due to the unique object allocation patterns associated with each.
在本例中,jvm调优为三种运行时模式带来了不同程度的改善,因为它们分别采用所特有的对象分配模式。
Improve the VM performance especially for object allocation and method calls.
完善虚拟机性能,尤其是在对象分配和方法调用方面。
If an object is reference rich, it puts pressure on both allocation and collection.
如果一个对象引用了太多其他对象,它给分配和收集都增加了压力。
One is smaller and is automatically used for large object allocation.
其中一个较小,会被自动用于大型对象的分配。
The most likely type is a memory problem, such as memory leak, heap fragmentation, or large object allocation.
最有可能的类型是内存问题,如内存泄漏、堆碎片、或者大对象分配。
In that case, lazy sweep spends a long time on a single object allocation.
在这种情况里,延迟清理会在一个单独对象的分配上耗费很长时间。
This results in a "flat heap", where the entire heap space is available for transient object allocation rather than just the nursery space.
这将导致一个“扁平堆”,其中,整个堆空间(而不只是保育空间)都可用于临时对象分配。
If the amount of free space available in the small object area is much greater than the size of the allocation request and yet the request can not be satisfied, the heap is fragmented.
如果小对象区域中的可用自由空间量远远大于分配请求大小,但是还无法满足请求,则表明堆中都是碎片。
To provide that information, it is necessary to capture allocation stack traces for every object allocation, which is very expensive and is also not available in most formats of memory dumps.
要提供此信息,需要为每个对象分配捕获分配堆栈跟踪,此开销很大,并且在许多格式的内存转储中不可用。
This "optimization" often does not deliver the expected savings; object allocation is cheaper than many give it credit for.
该“优化”通常不带来预期的好处;对象分配比很多人期望的更便宜。
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堆。
The aim of the GC is to clear up the JVM heap of any objects that are no longer required, thus providing enough space for the object that previously failed allocation.
GC的目标是清理不再需要的对象的JVM堆,从而向此前分配失败的对象提供足够的空间。
If we don't need to do a GC, allocation is 1 moving a pointer forward and 2 clearing the memory for the new object.
如果我们不需要进行GC,分配就是1将指针前移2为新对象清除内存。
But the object requesting allocation space was also quite large.
但要求分配空间的对象也相当大。
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内没有足够的连续空间可以分配给对象时,就会发生分配失败。
When analyzing native_stderr.log, we found that the GC cycles were fine, and there were no memory issues, such as memory leak, heap fragmentation, and large object allocation.
在分析native_stderr . log时,我们发现垃圾收集周期没有问题,并且不存在内存问题,如内存泄漏、堆碎片和大对象分配。
Benchmark object allocation and object reuse.
基准对象分配和对象重用。
To locate object allocation line from the object information
从对象信息定位对象分配的行
The LTMemory class represents an area of memory where the time to instantiate an object is the combination of a fixed allocation time and a variable initialisation time.
LTMemory类表示这样的内存域,在这里实例化一个对象的时间等于固定的分配时间加上不定的初始化时间。
Means that the object allocation routine completed unsuccessfully and an OutOfMemoryError will be thrown.
表示对象分配例程已成功完成,并且将抛出一个Out Of MemoryError。
However, because of how it lays out objects in the heap, the gencon policy enables much faster object allocation and faster object access.
但是,由于gencon策略在堆中放置对象的特定方式,该策略支持更快的对象分配和更快的对象访问。
If an object created by a thread needs to do allocation internally, you must pass a reference to the thread itself to the object so that the allocate methods can be called when needed.
如果线程创建的对象需要在内部执行分配,您必须将对线程本身的引用传递给对象以便在需要时能够调用allocate方法。
Subpool: Speeds up object allocation on systems with very large Numbers of processors.
subpool:加速多处理器系统的对象分配。
Part 1 examines object allocation; Part 2 details garbage collection; and Part 3 explains how to interpret verbosegc and how some of the command-line parameters work.
第1部分讨论了对象地址分配;第2部分详细描述了垃圾收集;第3部分描述了如何解释verbosegc以及如何使用其中一些命令行参数。
If the large-object section is filled and another large object requests allocation, the object is placed on the other main section of the heap.
如果大型对象部分已满且有另一个大型对象请求分配,那么这个对象就被放在heap的另一个主要部分上。
When using an object pool, the allocation, initialization, collection, and finalization only occur once, reducing both the memory usage and the processing time that is required.
在使用对象池时,分配、初始化、回收和终结只发生一次,从而减少了内存使用和所需的处理时间。
On the other hand, if the test code does any object allocation at all (and nearly all code does), it's going to create garbage, and eventually, the garbage collector is going to have to run.
另一方面,如果测试代码要进行对象分配工作(差不多所有的代码都要这样),那么垃圾收集器也肯定会运行。
The first ratio is the normal area of the heap (80 percent used for normal processing), and the second is what we have defined for the large objects (20 percent for large-object allocation).
第一个比率是heap的常规区域(80%用于常规处理),第二个比率是我们为大型对象分配的heap 段(20% 分配给大型对象)。
On my desktop machine, one million iterations takes about 12 seconds to complete. The pooling code avoids the allocation of the MyClass object within the loop
在我的桌面计算机上,一百万次迭代需要大约12秒钟才能完成。
应用推荐