摘要
Java技术通过自动的垃圾收集来管理内存的回收,降低了编写代码的复杂程度,减小了系统中潜在的不安全因素。针对众多开发人员在实际应用中未能充分发挥垃圾收集机制优势的情况,基于对Java虚拟机中垃圾收集机制及其实现的分析,提出了在具体应用中对垃圾收集算法进行选择和对Java虚拟机相关参数进行调节的方法。实验表明,该方法使得垃圾收集对系统性能的负面影响最小化,从而提高了系统的性能和效率。对开发人员具有一定的参考价值。
Java technology uses automatic garbage collection mechanism to manager the recycling of memory. The mechanism can reduce the complexity of coding, and decrease unsafe factor lurking in the system. However, most developers have not taken full advantage of the mechanism of GC in practical applications. Based on the analyse of the principle on GC and how it is implemented in the JVM, a tuning method of algorithm choosing and performance tuning with its parameters is proposed. Experiment prove that by using this tunning method, the negative effect on the function of system is minimized, and the efficiency of system is improved. The tunning method has certain reference value to the developers.
出处
《计算机工程与设计》
CSCD
北大核心
2006年第17期3242-3244,3247,共4页
Computer Engineering and Design
关键词
垃圾收集
JAVA虚拟机
分代式垃圾收集算法
性能调节
garbage collection (GC)
java virtual machine (JVM)
generational GC algorithm
performance tuning