摘要: 提出一种适用于实时性环境的Java虚拟机垃圾收集算法。该算法通过对增量式收集器中堆空间划分方式和引用跟踪进行改进,以减少垃圾收集时带来的不确定性暂停,并且该算法可以指定用户在一个时间段内进行垃圾收集,以便使应用程序暂停时间达到最短,从而适用于实时性环境。实验结果表明,该算法能有效减少垃圾收集时暂停的频率和时长。
关键词:
实时性环境,
Java虚拟机,
增量式收集器,
堆空间划分,
引用追踪
Abstract: A Java Virtual Machine(JVM) garbage collection algorithm in real-time environment is presented. The proposed algorithm improves the heap space division and reference tracking in incremental collector for reducing the uncertain pause caused by garbage collection. Furthermore, this algorithm allows users to assign a specified period in the garbage collection in order to obtain the shortest pause time. All of these make the proposed algorithm suitable for real-time environment. Experiment results show that this algorithm can effectively reduce the frequency and duration of pauses.
Key words:
real-time environment,
Java Virtual Machine(JVM),
incremental collector,
heap space division,
reference tracking
中图分类号:
李娜, 刘俊辉. 实时性环境中JVM垃圾收集算法[J]. 计算机工程, 2011, 37(15): 52-54.
LI Na, LIU Dun-Hui. JVM Garbage Collection Algorithm in Real-time Environment[J]. Computer Engineering, 2011, 37(15): 52-54.