监视应用程序线程
VisualVM 在特定于该应用程序的选项卡中显示本地和远程应用程序的数据。应用程序选项卡显示在 "应用程序" 窗口右侧的主窗口中。一次可以打开多个应用程序选项卡。每个应用程序选项卡都包含显示有关应用程序的不同类型信息的子选项卡。
Monitoring Thread Activity
By default the Threads tab displays a timeline of current thread activity. You can click a thread in the timeline to view details about that thread in the Details tab.
Timeline Tab
此选项卡显示具有实时线程状态的时间线。使用时间轴工具栏中的按钮可以放大/缩小当前视图, 并切换到缩放以适应模式。下拉列表使您可以选择显示哪些线程。您可以选择查看所有线程、实时线程或已完成的线程。还可以选择单个线程或多个线程来显示线程的子集。在 "详细信息" 选项卡中, 可以双击线程时间线以打开该线程。
Details Tab
The Details tab displays more detailed information about individual threads. Using the drop-down list, you can select to display all threads, all live threads or all finished threads. You can also choose to display only the details of threads selected in the Timeline view. For each thread, the name, classname and current status (alive/finished) are displayed. A short description of the thread is also provided.
Each thread displayed in the Details tab has the following tabs:
- General. This tab displays thread states statistics.
- Details. This tab contains full listings of thread states with timestamps.
A timeline for each thread provides a quick overview of the thread's activity.
Taking a Thread Dump
Return to the VisualVM Documentation index