Tomcat 8/Jira 7 configuration

Hi guys,

Our JIRA 7 crashes every 2 weeks(or I should say Tomcat), we usually have about 250-300 concurrent users during week days. I increased maxThreads from default 150 to 300 few weeks ago, and it crashed after 2 weeks, I could see from Windows resource monitor, right before it crashed, there were 608 threads running on tomcat8.exe process, 30 mins before it crashed, I also received users report that they couldn't upload attachment into JIRA. So now I increased the number from 300 to 600 on our APR connector, and for AJP connetor, i keep it maxThreads at 200.

I can see from Windows resource monitor for the past few days, threads are increasing regularly everyday from 150 threads to 260 now. I think eventually it will hit 600 threads ceiling if threads can't be terminated properly.

One more thing, there are messages similar to below been logged few times a day,

INFO [file-attachment-store:thread-963] org.apache.coyote.AbstractProcessor.setErrorState An error occurred in processing while on a non-container thread. The connection will be closed immediately APR error: -70014
at org.apache.coyote.http11.InternalAprOutputBuffer.writeToSocket(
at org.apache.coyote.http11.InternalAprOutputBuffer.writeToSocket(
at org.apache.coyote.http11.InternalAprOutputBuffer.flushBuffer(
at org.apache.coyote.http11.AbstractOutputBuffer.endRequest(
at org.apache.coyote.http11.AbstractHttp11Processor.action(
at org.apache.coyote.Response.action(
at org.apache.catalina.connector.OutputBuffer.close(
at org.apache.catalina.connector.CoyoteOutputStream.close(
at com.atlassian.jira.web.servlet.AbstractViewFileServlet$1.withInputStream(
at com.atlassian.jira.web.servlet.AbstractViewFileServlet$1.withInputStream(
at com.atlassian.jira.issue.managers.DefaultAttachmentManager$7.get(
at com.atlassian.jira.issue.managers.DefaultAttachmentManager$7.get(
at com.atlassian.util.concurrent.Executors$DefaultSubmitter$
at com.atlassian.util.concurrent.LimitedExecutor$
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$


Please take a look at my tomcat configuration, I'd appreciate for any recommendation. Thanks,

<Connector port="443" maxHttpHeaderSize="8192"
maxThreads="600" minSpareThreads="25"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
sslProtocol="TLS" useBodyEncodingForURI="true"

<Connector port="8009" redirectPort="443" URIEncoding="UTF-8"  enableLookups="false" protocol="AJP/1.3" maxThreads="200" connectionTimeout="600000" />

2 answers

Try to implement like this. it will help you.

Better to keep backup twice in a day which is helpful for you.

Thank you

Did you find the answer? I'm experiencing the same issue with Confluence...

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,709 views 17 21
Read article

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