Notice that increasing this value might cost more garbage collection activities if memory allocated for each task is not large enough.
注意,如果给每个任务分配的内存不够大,增加这个值可能会导致更多垃圾收集活动。
Creating many objects also tends to increase heap fragmentation, which leads to even more garbage collection cycles. For example, do not create objects prematurely.
创建许多对象还容易增加堆碎片,而这会导致出现更多的垃圾回收周期。
Similarly, more garbage collections occur when a system is under heavy load, which makes it more likely that a garbage collection will occur before the callback.
同样道理,系统负载过大时会发生更多垃圾回收,进而使得垃圾回收更有可能在回调之前发生。
Similarly, more garbage collections occur when a system is under heavy load, which makes it more likely that a garbage collection will occur before the callback.
同样道理,系统负载过大时会发生更多垃圾回收,进而使得垃圾回收更有可能在回调之前发生。
应用推荐