Monitoring Thread Status as Timeline

This section provides a tutorial example on how to monitor the status of each thread in timeline or table format.

To monitor the status of each individual thread, you can use the Threads tab on Java VisualVM.

1. Start Java VisualVM and connect to the running JVM of LongSleep.java.

2. Click on the Threads tab. The thread screen is displayed with 3 sub tabs:

3. Wait for some time, and click on the Timeline tab. You will all threads in the LongSleep.java. The "main" thread is sleeping as expected. But there are 4 threads always running: RMI TCP Accept-0, Attach Listener, Signal Dispatcher, and RMI TCP Connection(4). I guess there are running to serve monitoring requests from this Java VisualVM.

Here is a picture showing the threads timeline view on Java VisualVM:
Java VisualVM - Monitor Tab with Heap History Diagram

Last update: 2015.

Table of Contents

 About This Book

 Java Tools Terminology

 Installing Java 8 on Windows

 'javac' - The Java Program Compiler

 'java' - The Java Program Launcher

 'jdb' - The Java Debugger

 'jconsole' - Java Monitoring and Management Console

 'jstat' - JVM Statistics Monitoring Tool

 JVM Troubleshooting Tools

jvisualvm (Java VisualVM) - JVM Visual Tool

 What Is jvisualvm (Java VisualVM)?

 jvisualvm Command to Open Dump Files or Conections

 Connecting Java VisualVM to a Local JVM Process

 Monitoring Usgaes of CPU, Heap, Classes and Threads

Monitoring Thread Status as Timeline

 Taking Thread Dump to See Thread Stack Traces

 Taking Heap Dump to See Memory Usages

 Viewing a Heap Dump File

 Connecting to Remote JVM Processes

 Avaible Plugins and Installation

 Installing Visual GC Plugin

 'jar' - The JAR File Tool

 'javap' - The Java Class File Disassembler

 'keytool' - Public Key Certificate Tool

 'native2ascii' - Native-to-ASCII Encoding Converter

 Outdated Tutorials

 References

 PDF Printing Version