Computer Science · Computer Networks and Communications
Using hardware performance monitors to understand the behavior of Java applications
Peter F. Sweeney Matthias Hauswirth, Brendon Cahoon, Perry Cheng, Amer Diwan, David Grove, Michael Hind
See on the mapAbstract
Modern Java programs, such as middleware and application servers, include many complex software components. Im-proving the performance of these Java applications requires a better understanding of the interactions between the appli-cation, virtual machine, operating system, and architecture. Hardware performance monitors, which are available on most modern processors, provide facilities to obtain detailed per-formance measurements of long-running applications in real time. However, interpreting the data collected using hardware performance monitors is difficult because of the low-level na-ture of the data. We have developed a system, consisting of two compo-nents, to alleviate the difficulty of interpreting results ob-tained using hardware performance monitors. The first com-ponent is an enhanced VM that generates traces of hardware performance monitor values while executing Java programs. This enhanced VM generates a separate trace for each Java thread and CPU combination and thus provides accurate re-sults in a multithreaded and multiprocessor environment. The second component is a tool that allows users to interactively explore the traces using a graphical interface. We imple-mented our tools in the context of Jikes RVM, an open source Java VM, and evaluated it on a POWER4 multiprocessor. We demonstrate that our system is effective in uncovering as yet unknown performance characteristics and is a first step in ex-ploring the reasons behind observed behavior of a Java pro-gram. 1