c1/c2 compiler thread eats a lot of cpu


My JIRA instalation eats alot of cpu time during "not so high load" at night for example.

thread dump shows that most of the time that threads are on

"C1 CompilerThread3" #8 daemon prio=9 os_prio=0 tid=0x00007f534400a800 nid=0x56d3 runnable [0x0000000000000000]

   java.lang.Thread.State: RUNNABLE


"C2 CompilerThread2" #7 daemon prio=9 os_prio=0 tid=0x00007f5344008800 nid=0x56d2 waiting on condition [0x0000000000000000]

   java.lang.Thread.State: RUNNABLE


"C2 CompilerThread1" #6 daemon prio=9 os_prio=0 tid=0x00007f5344006800 nid=0x56d1 waiting on condition [0x0000000000000000]

   java.lang.Thread.State: RUNNABLE


"C2 CompilerThread0" #5 daemon prio=9 os_prio=0 tid=0x0000000001eb3000 nid=0x56d0 waiting on condition [0x0000000000000000]

   java.lang.Thread.State: RUNNABLE


any ideas how to debug it?


1 answer

1 accepted

1 votes

Hi, Aleksey,

May I know if can see the following on the JIRA logs:

Java HotSpot(TM) 64-Bit Server VM warning: CodeCache is full. Compiler has been disabled.

I believe this may be related to the CompilerThreads using so much CPU. This behavior is fully explained on this blog post:

We don’t have any statistics as to the impact of this on long running performance; the impression that I have is that CPU utilisation & request service time would increase over long running VMs for code that could have been optimised. For a system that is over-committed on CPU resources the application throughput could decrease noticeably.

To try to mitigate that, could you try adding the following parameters to the JIRA startup and restart JIRA:

I hope this helps!

adding that two options helps. tnx

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,110 views 13 19
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot