摘要: 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
中图分类号:
柳永坡;贾晓霞;吴 际;金茂忠;孙惠丽. Java程序内存低效使用问题的分析[J]. 计算机工程, 2008, 34(23): 84-85,9.
LIU Yong-po; JIA Xiao-xia; WU Ji; JIN Mao-zhong; SUN Hui-li. Analysis of Memory Usage with Low Efficiency in Java Program[J]. Computer Engineering, 2008, 34(23): 84-85,9.