Book Image

Oracle JRockit: The Definitive Guide

Book Image

Oracle JRockit: The Definitive Guide

Overview of this book

Oracle JRockit is one of the industry’s highest performing Java Virtual Machines. Java developers are always on the lookout for better ways to analyze application behavior and gain performance. As we all know, this is not as easy as it looks. Welcome to JRockit: The Definitive Guide.This book helps you gain in-depth knowledge of Java from the JVM’s point of view. We will explain how to write code that works well with the JVM to gain performance and scalability. Starting with the inner workings of the JRockit JVM and finishing with a thorough walkthrough of the tools in the JRockit Mission Control suite, this book is for anyone who wants to know more about how the JVM executes your Java application and how to profile for better performance.
Table of Contents (23 chapters)
Oracle JRockit
Credits
Foreword
About the Authors
Acknowledgement
About the Reviewers
Preface
12
Using the JRockit Management APIs
Bibliography
Glossary
AST
CAS
HIR
IR
JFR
JMX
JRA
JSR
LIR
MD5
MIR
PDE
RCP
SWT
TLA
Index

Chapter 11. JRCMD

This chapter is dedicated to JRCMD—one of the simplest tools in the JRockit distribution. JRCMD is a small command-line tool that can be used to interact with a running JRockit instance. It can also be used to list all running instances of the JRockit JVM on a system.

In this chapter, you will learn:

  • How to use JRCMD to list the locally running JVMs on your machine

  • How to use JRCMD to execute diagnostic commands on one or all JVMs running locally on your machine

  • How to override the SIGQUIT signal handler to make JRockit run diagnostic commands of your choice instead of printing stack dumps, which is the default action

  • How to utilize JRCMD to solve various tasks such as:

    • Heap analysis

    • Exception profiling

    • Native memory tracking

    • Controlling the management server lifecycle

    • Controlling JRockit Flight Recorder from the command line

The last part of this chapter is in a format that makes it usable as a JRCMD reference. The reference part lists the various diagnostic commands in alphabetical...