Memory system behavior of Java programs
Authors:
Open Access
- 1 June 2000
- journal article
- Published by Association for Computing Machinery (ACM) in ACM SIGMETRICS Performance Evaluation Review
- Vol. 28 (1) , 264-274
Abstract
This paper studies the memory system behavior of Java programs by analyzing memory reference traces of several SPECjvm98 applications running with a Just-In-Time (JIT) compiler. Trace information is collected by an exception-based tracing tool called JTRACE, without any instrumentation to the Java programs or the JIT compiler. First, we find that the overall cache miss ratio is increased due to garbage collection, which suffers from higher cache misses compared to the application. We also note that going beyond 2-way cache associativity improves the cache miss ratio marginally. Second, we observe that Java programs generate a substantial amount of short-lived objects. However, the size of frequently-referenced long-lived objects is more important to the cache performance, because it tends to determine the application's working set size. Finally, we note that the default heap configuration which starts from a small initial heap size is very inefficient since it invokes a garbage collector frequently. Although the direct costs of garbage collection decrease as we increase the available heap size, there exists an optimal heap size which minimizes the total execution time due to the interaction with the virtual memory performance.Keywords
This publication has 11 references indexed in Scilit:
- Overview of the IBM Java Just-in-Time CompilerIBM Systems Journal, 2000
- Why are we using Java again?Communications of the ACM, 1998
- Bug found in Java Virtual MachineNetwork Security, 1997
- The structure and performance of interpreters1996
- Memory system performance of programs with intensive heap allocationACM Transactions on Computer Systems, 1995
- EEL1995
- Cache performance of fast-allocating programs1995
- ATOM1994
- Cache performance of garbage-collected programs1994
- Implementing stack simulation for highly-associative memories1991