计算机工程 ›› 2008, Vol. 34 ›› Issue (23): 84-85,9.doi: 10.3969/j.issn.1000-3428.2008.23.031

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

Java程序内存低效使用问题的分析

柳永坡1,2,贾晓霞1,吴 际1,金茂忠1,孙惠丽3   

  1. (1. 北京航空航天大学计算机学院,北京 100083;2. 大庆石油学院计算机与信息技术学院,大庆 163318;3. 高等教育出版社,北京 100029)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2008-12-05 发布日期:2008-12-05

Analysis of Memory Usage with Low Efficiency in Java Program

LIU Yong-po1,2, JIA Xiao-xia1, WU Ji1, JIN Mao-zhong1, SUN Hui-li3   

  1. (1. School of Computer, Beijing University of Aeronautics & Astronautics, Beijing 100083; 2. School of Computer and Information Technology, Daqing Petroleum Institute, Daqing 163318; 3. Higher Education Press, Beijing 100029)
  • Received:1900-01-01 Revised:1900-01-01 Online:2008-12-05 Published:2008-12-05

摘要: Java程序内存的低效使用是导致其性能问题的主要因素。该文分析了泄漏对象、蚍蜉对象和空闲对象3类导致内存低效使用的情况,探讨解决上述问题的方法,并提出构造对象行为模式。实验结果表明,该方案是有效的。

关键词: 内存低效使用, 内存泄漏, 垃圾回收

Abstract: The main memory usage with low efficiency is key factor to downgrade Java program performance. Three cases including leaked objects, instantaneous objects and idle objects are analyzed, which downgrade Java programs performance. How to solve these problems is also discussed. Moreover, the constructing the object lifecycle behavior model is proposed. Experimental results show this scheme is effective.

Key words: memory usage with low efficiency, memory leak, garbage collection

中图分类号: