An analysis of the garbage collection performance in Sun's HotSpot/sup TM/ Java Virtual Machine

Author(s):  
L. Dykstra ◽  
W. Srisa-an ◽  
J.M. Chang
Author(s):  
Chang-Il Cha ◽  
Hyung-Jun Kim ◽  
Kyu-Jeong Hwang ◽  
Sang-Wook Kim ◽  
Sang-Yun Lee ◽  
...  

1999 ◽  
Vol 09 (03) ◽  
pp. 391-399 ◽  
Author(s):  
ALAIN AZAGURY ◽  
ELLIOT K. KOLODNER ◽  
EREZ PETRANK

Replication-based incremental garbage collection is one of the more appealing concurrent garbage collection algorithms known today. It allows continuous operation of the application (the mutator) with very short pauses for garbage collection. There is a growing need for such garbage collectors suitable for a multithreaded environments such as the Java Virtual Machine. Furthermore, it is desirable to construct collectors that also work on multiprocessor computers. We begin by pointing out an important, yet subtle point, which arises when implementing the replication-based garbage collector for a multithreaded environment. We first show that a simple and natural implementation of the algorithm may lead to an incorrect behavior of multithreaded applications. We then show that another simple and natural implementation eliminates the problem completely. Thus, the contribution of this part is in stressing this warning to future implementors. Next, we address the effects of the memory coherence model on this algorithm. We show that even when the algorithm is properly implemented with respect to our first observation, a problem might still arise when a multiprocessor system is used. Adopting a naive solution to this problem results in very frequent (and expensive) synchronization. We offer a slight modification to the algorithm which eliminates the problem and requires little synchronization.


2011 ◽  
pp. 283-292
Author(s):  
Mark Claypool ◽  
Tom Coates ◽  
Shawn Hooley ◽  
Eric Shea ◽  
Chris Spellacy

The tremendous growth in both Java and multimedia present an opportunity for cross-platform multimedia applications. However, little research has been done on Java multimedia performance. In this chapter, we present experiments that measure the multimedia performance of an MPEG-1 client in Java. We find Just-In-Time compilation, local media access and processor type significantly affect multimedia performance, while choice of operating system, Java virtual machine and garbage collection have a negligible effect on multimedia performance. Overall, Java still lags considerably behind multimedia performance in C++.


Sign in / Sign up

Export Citation Format

Share Document