DocumentCode :
390633
Title :
Dynamic memory allocation/deallocation behavior in Java programs
Author :
Fong, Anthony S. ; Li, Richard C L
Author_Institution :
Dept. of Electron. Eng., City Univ. of Hong Kong, Kowloon, China
Volume :
1
fYear :
2002
fDate :
28-31 Oct. 2002
Firstpage :
314
Abstract :
As the object-oriented paradigm becomes the mainstream paradigm on software development, due to its attractive features that can effectively divide a complex software problem into several independent modules, one of the object-oriented languages - Java, has become popular in recent years because it is widely used in the rapidly growing Internet computing. However, as with other object-oriented languages, Java has the big drawback of poor performance. One of the main causes of the performance deficiency is the extensive use of dynamic memory allocations and deallocations during object or array creations and destructions. Even a simple Othello applet game easily requires half a million of memory allocations for only one game play. After analysis of the memory allocation behavior of Java programs, it is concluded that about 99% of the allocations are of sizes less than 1024 bytes. The analysis also shows that most of the allocated chunks in small size will survive only a very short period of time and after they are garbage collected, they can be reused in the very near future. This implies the memory allocation/deallocation pattern in Java is bounded to a certain kind of locality. The information presented in this paper is a reference for designing an efficient hardware memory allocation/deallocation unit.
Keywords :
Internet; Java; data structures; object-oriented programming; storage allocation; storage management; Internet computing; Java programs; Othello applet game; array creations; array destructions; deallocation behavior; dynamic memory allocation; garbage collection; hardware memory allocation/deallocation unit; locality; object-oriented languages; object-oriented paradigm; performance; software development; Hardware; Internet; Java; Memory management; Object oriented programming; Pattern analysis; Software maintenance; Software performance; Statistics; Sun;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
TENCON '02. Proceedings. 2002 IEEE Region 10 Conference on Computers, Communications, Control and Power Engineering
Print_ISBN :
0-7803-7490-8
Type :
conf
DOI :
10.1109/TENCON.2002.1181277
Filename :
1181277
Link To Document :
بازگشت