Abstract:
This paper analyzes and improves the generational garbage collection algorithm, proposes an optimization algorithm for Garbage Collection(GC) based on embedded Java Virtual Machine(JVM). It adopts dynamical generational approach, and divides the old generational recycle task into smaller segments. In this way, it can make full use of the heap and shorten the pause time which is caused by whole heap recycle. Experimental results show that the algorithm can shorten the average system pause time and bring high recycle efficiency.
Key words:
Java Virtual Machine(JVM),
Garbage Collection(GC),
dynamic generation division,
incremental collection
摘要: 对分代垃圾收集算法进行分析和改进,提出一种适用于嵌入式Java虚拟机的垃圾收集优化算法。采取动态的分代方式,将旧生代的回收工作细分,从而充分利用堆空间,缩短分代回收中全收集导致的停顿时间。实验结果表明,该算法能保持较高的垃圾收集效率,系统平均停顿时间较少。
关键词:
Java虚拟机,
垃圾收集,
动态分代,
增量回收
CLC Number:
TUN Zhi-Jun, HE Jia-Ming, CENG Xin-Bin, SHI Zhi-Hui. Optimization Algorithm for Garbage Collection Based on Embedded Java Virtual Machine[J]. Computer Engineering, 2012, 38(7): 46-48.
吴志军, 何加铭, 曾兴斌, 史智慧. 基于嵌入式Java虚拟机的垃圾收集优化算法[J]. 计算机工程, 2012, 38(7): 46-48.