作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2011, Vol. 37 ›› Issue (15): 52-54. doi: 10.3969/j.issn.1000-3428.2011.15.015

• 软件技术与数据库 • 上一篇    下一篇

实时性环境中JVM垃圾收集算法

李 娜a,刘俊辉b   

  1. (郑州牧业工程高等专科学校 a. 信息工程系;b. 教务处,郑州 450011)
  • 收稿日期:2011-01-10 出版日期:2011-08-05 发布日期:2011-08-05
  • 作者简介:李 娜(1979-),女,讲师、硕士,主研方向:Java虚拟机垃圾收集算法,数据库技术;刘俊辉,讲师、硕士
  • 基金资助:
    河南省社科联科研课题基金资助项目(SKL-2010-1968, SKL-2010-1158)

JVM Garbage Collection Algorithm in Real-time Environment

LI Na a, LIU Jun-hui  b   

  1. (a. Department of Information Engineering; b. Studies Affairs Office, Zhengzhou College of Animal Husbandry Engineering, Zhengzhou 450011, China)
  • Received:2011-01-10 Online:2011-08-05 Published:2011-08-05

摘要: 提出一种适用于实时性环境的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

中图分类号: