Apache tomcat consume high cpu every time

we have v6.3.12 jira software installed on server , but most time it consume 99 % cpu usage please suggest the soltuion ,

1 answer

0 votes
Steven Behnke Community Champion Jan 02, 2018

Well, that's not normal. But you've given us zero details, so I'm not sure how to help. Is the system under heavy load, other than Jira? Where is the database? Are you seeing lots of errors in the logs? Do you have a lot of plugins?

Thanks for reply

system not under heavy load , database is on same server .no error logs and when i stopped jira service the cpu utilization is normal 7-10 % but when i start jira service apache tomcat consume more cpu and slow down

still wating for reply

Do you have a lot of add-ons?  Is the slowness permanent or intermittent?    Are there warnings or errors in the log?

Could you explain the load (or lack of it) - specifically are all of the CPU, Memory, Disk and Network rates ok?  I ask because I wasted half a day with someone telling me "it's not loaded" only to find they meant "the cpu is quiet", which is not the only factor.

@ar Nic and I are community contributors. We do not do this for work, we do this for fun. I'm sorry but I cannot guarantee an immediate response.

We are not able to proceed with the little information you've provided. If your system is not under heavy load, if there's no errors, then  we need more information?

Nic has asked better questions: However I will be honest, I don't believe you when you say "no error logs". Where are you lookingfor errors?

Thanks steven for reply

i checked the cpu utilization when i start jira services apache tomcat consume 90% cpu and please guide me where to check log if make any mistake

Please check the default log locations.

  • /var/atlassian/application-data/jira/log/atlassian-jira.log
  • /opt/atlassian/jira/logs/catalina.out

If you are using Windows Server, these locations will be different. If you customized the installation paths, these locations will be different.

We're particularly interested in any items labeled WARN or ERROR. 

Can you show us the output from top or htop or another process viewer? You keep saying there's high CPU usage, how are you sure that Jira is causing it?

and calatalina logs as

Jan 05, 2018 2:31:06 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files (x86)\Atlassian\JIRA\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Parallels\Plesk\Mail Servers\Mail Enable\BIN;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Parallels\Plesk\ctl;C:\Program Files (x86)\Parallels\Plesk\Mail Servers\Mail Enable\BIN64;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP55;;.
Jan 05, 2018 2:31:14 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8888"]
Jan 05, 2018 2:31:14 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 13510 ms
Jan 05, 2018 2:31:15 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Jan 05, 2018 2:31:15 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.55
Jan 05, 2018 2:35:27 PM org.apache.catalina.util.SessionIdGenerator createSecureRandom
INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [3,141] milliseconds.
Jan 05, 2018 2:35:31 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8888"]
Jan 05, 2018 2:35:31 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 269594 ms

Does the CPU return to a more moderate usage after Jira has finished start up (i.e. you can log in)?

Could you answer all of Steven's questions?

yes after login come to moderate usage and when i acess any menu of jira then cpu is usage is high and then after some time moderate

What about the 'atlassian-jira.log' file? You only posted the catalina.out contents. 

Please show us the Process Explorer with the CPU stats visible. 

We still have basically no information from you.

Even i am facing the same issue, system becomes completely irresponsive. It forces me to restart service "Atlassian Jira".

After restarting system becomes normal. I am not understanding this even after having 8GB of RAM and Intel's core-i5 3450 CPU.

If system becoming normal after service restart(atlassian Jira), isn't it looks like problem with Jira service? Why it is consuming suddenly 100% of CPU.

Which log file will have information about this.

access_log.2018-06-28
atlassian-jira-gc-2018-06-28_14-01-30.log.0.current
catalina.2018-06-28.log
commons-daemon.2018-06-28.log
host-manager.2018-06-28.log
jirasoftware110618110033-stderr.2018-06-28.log
jirasoftware110618110033-stdout.2018-06-28.log
localhost.2018-06-28.log
manager.2018-06-28.log

Open a new question, you shouldn't bump an old, unrelated topic.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

25,433 views 2 7
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