Using jvmtop to analyze JIRA performance

Still need help?

The Atlassian Community is here for you.

Ask the community

Purpose

This page outlines how to analyze JIRA application performance using Jvmtop

  • Jvmtop provides a overview of all running JVMs on a machine. 
  • Jvmtop can analyze a JVM process to get an idea of which threads are consuming CPU.
  • Jvmtop also includes a CPU console profiler.

(warning) Jvmtop is currently in alpha state.


(info) See below for other examples on how to understand which threads in JIRA application are consuming a lot of CPU:

Solution

  • Get a copy of Jvmtop
  • Jvmtop requires a JDK to run
  • Example of output from jvmtop:

    $ jvmtop
     
    JvmTop 0.8.0 alpha - 17:57:33, x86_64,  8 cpus, Mac OS X 10.10., load avg 22.40
     http://code.google.com/p/jvmtop
      PID MAIN-CLASS      HPCUR HPMAX NHCUR NHMAX    CPU     GC    VM USERNAME   #T DL
      366                  243m 2031m  152m  446m 63.33%  0.11% A6U65 pkirkeby   76
      819 moteMavenServer   55m  505m   31m  130m 14.07%  0.40% A6U65 pkirkeby   19
      754 m.jvmtop.JvmTop    3m  235m   10m  130m  1.01%  0.29% O7U25 pkirkeby   16
  • Example of output from jvmtop monitoring a specific process:

    $ jvmtop <pid>
     
     JvmTop 0.8.0 alpha - 17:37:55, x86_64,  8 cpus, Mac OS X 10.10., load avg 2.22
     http://code.google.com/p/jvmtop
     PID 17817: org.apache.catalina.startup.Bootstrap
     ARGS: start
     VMARGS: -Djava.util.logging.config.file=/Users/pkirkeby/Atlassian/deploym[...]
     VM: Oracle Corporation Java HotSpot(TM) 64-Bit Server VM 1.8.0_31
     UP:  2:49m  #THR: 111  #THRPEAK: 111  #THRCREATED: 184  USER: pkirkeby
     GC-Time:  0: 0m   #GC-Runs: 123       #TotalLoadedClasses: 44485
     CPU: 11.43% GC:  2.95% HEAP: 281m / 910m NONHEAP: 341m /  n/a
      TID   NAME                                    STATE    CPU  TOTALCPU BLOCKEDBY
        192 RMI TCP Connection(2)-172.20.0       RUNNABLE  3.82%     0.05%
         87 atlassian-scheduler-quartz1.cl  TIMED_WAITING  0.23%     0.39%
        193 JMX server connection timeout   TIMED_WAITING  0.17%     0.00%
         84 atlassian-scheduler-quartz1.cl  TIMED_WAITING  0.16%     0.56%
         83 atlassian-scheduler-quartz1.cl  TIMED_WAITING  0.15%     0.38%
         80 jira-monitoring-plugin          TIMED_WAITING  0.02%     0.06%
        179 Java2D Disposer                       WAITING  0.01%     0.00%
        110 Navlink Plugin Executor:thread        WAITING  0.01%     0.02%
         59 I/O dispatcher 6                     RUNNABLE  0.01%     0.07%
        119 http-bio-8080-AsyncTimeout      TIMED_WAITING  0.01%     0.12%
     Note: Only top 10 threads (according cpu load) are shown!

Last modified on Feb 26, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.