Possible to monitor plugin performance within JIRA?

Backstory: We have monitoring configured on our JIRA instance that monitors memory (heap commited, used, code cache size, amount used etc), disk space, read/write speed, threads allocated / used, we monitor cpu usage overall and on a per core basis, etc.

Ask: The one item I really feel is missing, the one that I want to monitor most of all is individual plugin performance.

Does anyone know of a way to dive deeper to get stats on what each plugin in JIRA is taking away (CPU, memory, threads)?

-Jason

1 answer

One thing that comes to my mind is get thread dumps + CPU information and check the percentage of CPU a given thread is using. You can do this with the following command: ps -Lo pcpu,pid,lwp -p 15503 (where 15503 is the proccess id).

Then you can map the thread that refers to the classes of a given plugin and compare with the CPU info.

The secret is that you need to convert the nid from the threads and convert to decimal. Example:

"ajp-bio-8085-exec-835" daemon prio=10 tid=0x000000001f1ac000 nid=0x3471 runnable [0x00000000658a9000]
   java.lang.Thread.State: RUNNABLE

nid=0x3471 is 13425, which can be used against the CPU information:

$ grep 13425 jira-cpu-usage-09_1*
%CPU   PID   LWP
15.2 17314 13425

I hope it helps.

Cheers

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

344 views 1 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you