Thread may be stuck

François
Contributor
July 31, 2016

Hello,

Since i upgrade confluence to 5.9.12, i got an issue with thread being stuck and leading to a crash of the instance.

01-Aug-2016 10:02:39.041 WARNING [ContainerBackgroundProcessor[StandardEngine[Standalone]]] org.apache.catalina.valves.StuckThreadDetectionValve.notifyStuckThreadDetected Thread "http-nio-8080-exec-11" (id=749) has been active for 62,746 milliseconds (since 8/1/16 10:01 AM) to serve the same request for http://localhost:8080/rest/mywork/latest/status/notification/count and may be stuck (configured threshold for this StuckThreadDetectionValve is 60 seconds). There is/are 10 thread(s) in total that are monitored by this Valve and may be stuck.
java.lang.Throwable

 

Someone knows something about that?

Thanks,

François

12 answers

4 votes
Alan Lupsha
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 27, 2019

Switching to a VM with more allocated RAM fixed this issue for me. 

ViceIce
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 24, 2019

Fixed that on Jira too

Like TaewoongKim likes this
3 votes
SABVARX
Contributor
September 15, 2016

Same issue using 5.10.2

This seems to be a feature, according to the following issue:

https://jira.atlassian.com/browse/CONF-40977

In previous confluence versions we did not know about stuck threats. Now we see them in the logs. But they might not be new.

1 vote
Lachlan Musicman August 14, 2018

Confluence 6.8.0 I experienced this. I've not tried anything.

1 vote
Steffen Becker
Contributor
July 9, 2018

I get the same issue in Confluence 6.4.1.

Is there a solution for this issue?

gfourmis
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 14, 2018

Hi, i got the same issue but can't find why.

I uninstall, redo installation process and switched to the production version and it's ok

Like Oleg Kovarsky likes this
1 vote
Logan Hawkes
Contributor
February 22, 2017

I get the same error when trying to create a new build plan in Bamboo v5.14.3.1. At the end I get an error message in the GUI: "New access key is required but could not be added to Bitbucket Server."

Yogesh Mude August 18, 2017

Hey Logan,

 

I am also using bamboo v5.14.3.1  and getting same error like thread may be stuck, have you solved this issue.

If yes please help...

Christian Plattner
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 27, 2019

Also happens when installing bamboo 6.8.1.

Could you resolve this?

1 vote
Missi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 31, 2016

I am having this issue as well, using Confluence 5.9.10 when running a backup.

Logan Hawkes
Contributor
February 17, 2019

Me too. I'm using Confluence DataCenter 6.12.2 on Azure. I can't do a site export or backup.

Like Roman Shestov likes this
0 votes
JDave
Contributor
April 26, 2019

I've noticed this occurring on my confluence instance - it is occurring as I am doing the database backup via sqldump.   Once the backup is completed, no further errors are seen.   I am using Mysql for the database, and on Confluence 6.13

0 votes
Alan Lupsha
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 18, 2018

.

Raphael Afaedor
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 23, 2018

Same here, during database set up, it timed out and later tell you one spring is out of control, I have been fighting with this for three days. Starting to get frustrated eventually.

Josef Platil
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 26, 2018

Hi Raphael, please check if you have enough memory allocated.

Like # people like this
geodepe
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 4, 2021

How much is enough?

0 votes
Raphael December 3, 2017

Hi,all.

when I upgrade Confluence from 5.8.14 to 5.10.8, I also met the same issue. 

and i found there were four main url requests cause the threads increase:

https://localhost:8090/rest/quickreload/latest/

https://localhost:8090/rest/analytics/1.0/publish/bulk

https://localhost:8090/rest/mywork/latest/status/notification/count

https://localhost:8090/json/startheartbeatactivity.action

Is there an official solution for this issue ? 

0 votes
Rilwan Ahmed
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 6, 2017

In confluence 5.10.4, I see this struck thread when we are running the load test.  eventually it gets complete when the thread processor becomes free

Example:
06-Jun-2017 12:44:40.689 WARNING [ContainerBackgroundProcessor[StandardEngine[Standalone]]] org.apache.catalina.valves.StuckThreadDetectionValve.notifyStuckThreadDetected Thread "http-apr-8443-exec-1233" (id=2713) has been active for 65,998 milliseconds (since 6/6/17 12:43 PM) to serve the same request for https://**************** and may be stuck (configured threshold for this StuckThreadDetectionValve is 60 seconds). There is/are 147 thread(s) in total that are monitored by this Valve and may be stuck.

Once thread is completed, you can see below message in the Catalina.out

06-Jun-2017 12:45:46.090 WARNING [ContainerBackgroundProcessor[StandardEngine[Standalone]]] org.apache.catalina.valves.StuckThreadDetectionValve.notifyStuckThreadCompleted Thread "http-apr-8443-exec-1233" (id=2713) was previously reported to be stuck but has completed. It was active for approximately 114,298 milliseconds. There is/are still 186 thread(s) that are monitored by this Valve and may be stuck.

Raphael December 3, 2017

 such many stuck threads cause the application stuck and start failed... and the numbers of threads are increasing faster and faster... 

0 votes
Heshan Manamperi
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 31, 2017

I'm getting same issue in confluence 5.10.7 and what is the fix for this bug?

0 votes
gowridhar madu November 9, 2016

Same issue i see on my confluence 5.9.11 and due to that one of Confluence DC instance we are getting 500 Error.

 

09-Nov-2016 01:27:59.626 WARNING [ContainerBackgroundProcessor[StandardEngine[Standalone]]] org.apache.catalina.valves.StuckThreadDetectionValve.notifyStuckThreadDetected Thread "http-nio-8090-exec-29" (id=267) has been active for 69,335 milliseconds (since 11/9/16 1:26 AM) to serve the same request for https://escmconfluence.1dc.com/download/attachments/74685514/Session%202%20-%20Ease%20Application%20Overview.mp4 and may be stuck (configured threshold for this StuckThreadDetectionValve is 60 seconds). There is/are 1 thread(s) in total that are monitored by this Valve and may be stuck.

java.lang.Throwable

        at sun.misc.Unsafe.park(Native Method)

        at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)

        at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(AbstractQueuedSynchronizer.java:1037)

        at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1328)

        at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:277)

 

09-Nov-2016 07:06:24.899 WARNING [ContainerBackgroundProcessor[StandardEngine[Standalone]]] org.apache.catalina.valves.StuckThreadDetectionValve.notifyStuckThreadDetected Thread "http-nio-8090-exec-34" (id=705) has been active for 67,996 milliseconds (since 11/9/16 7:05 AM) to serve the same request for https://escmconfluence.1dc.com/display/Core360Control/Environment+Priorities?flashId=1427034727 and may be stuck (configured threshold for this StuckThreadDetectionValve is 60 seconds). There is/are 1 thread(s) in total that are monitored by this Valve and may be stuck.

java.lang.Throwable

        at java.lang.Object.wait(Native Method)

        at com.hazelcast.spi.impl.BasicInvocationFuture.pollResponse(BasicInvocationFuture.java:265)

        at com.hazelcast.spi.impl.BasicInvocationFuture.waitForResponse(BasicInvocationFuture.java:216)

        at com.hazelcast.spi.impl.BasicInvocationFuture.get(BasicInvocationFuture.java:193)

 

09-Nov-2016 07:15:16.982 WARNING [ContainerBackgroundProcessor[StandardEngine[Standalone]]] org.apache.catalina.valves.StuckThreadDetectionValve.notifyStuckThreadDetected Thread "http-nio-8090-exec-22" (id=260) has been active for 248,698 milliseconds (since 11/9/16 7:11 AM) to serve the same request for https://escmconfluence.1dc.com/rest/mywork/latest/status/notification/count?_=1478693467722 and may be stuck (configured threshold for this StuckThreadDetectionValve is 60 seconds). There is/are 15 thread(s) in total that are monitored by this Valve and may be stuck.

java.lang.Throwable

        at sun.misc.Unsafe.park(Native Method)

        at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)

 

 

09-Nov-2016 07:15:17.289 WARNING [ContainerBackgroundProcessor[StandardEngine[Standalone]]] org.apache.catalina.valves.StuckThreadDetectionValve.notifyStuckThreadCompleted Thread "http-nio-8090-exec-22" (id=260) was previously reported to be stuck but has completed. It was active for approximately 248,715 milliseconds. There is/are still 14 thread(s) that are monitored by this Valve and may be stuck.

09-Nov-2016 07:15:17.289 WARNING [ContainerBackgroundProcessor[StandardEngine[Standalone]]] org.apache.catalina.valves.StuckThreadDetectionValve.notifyStuckThreadCompleted Thread "http-nio-8090-exec-3" (id=228) was previously reported to be stuck but has completed. It was active for approximately 350,492 milliseconds. There is/are still 13 thread(s) that are monitored by this Valve and may be stuck.

09-Nov-2016 07:15:18.013 SEVERE [http-nio-8090-exec-59] org.apache.catalina.core.StandardHostValve.custom Exception Processing ErrorPage[errorCode=500, location=/500page.jsp]

com.atlassian.cache.CacheException: Problem retrieving a value from cache com.atlassian.confluence.user.persistence.dao.ConfluenceRememberMeToken

 

Harish Gunturu July 22, 2019

Hello, Did you find any solution for this?

Thanks in advance!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events