Bug 1277699 - [GSS](6.4.z) TempFileProviderService threads consume high CPU
Summary: [GSS](6.4.z) TempFileProviderService threads consume high CPU
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Server
Version: 6.4.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: CR1
: EAP 6.4.10
Assignee: Aaron Ogburn
QA Contact: Jiri Truhlar
eap-docs
URL:
Whiteboard:
Depends On:
Blocks: eap6410-payload
TreeView+ depends on / blocked
 
Reported: 2015-11-03 21:01 UTC by Aaron Ogburn
Modified: 2019-09-12 09:13 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-01-17 13:02:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
WFCORE-1093.btm (221 bytes, text/plain)
2015-11-03 21:06 UTC, Aaron Ogburn
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker WFCORE-1093 0 Major Resolved TempFileProviderService threads consume high CPU 2017-10-10 11:17:34 UTC
Red Hat Knowledge Base (Solution) 2039903 0 None None None 2016-04-11 16:31:11 UTC

Description Aaron Ogburn 2015-11-03 21:01:25 UTC
Description of problem:

TempFileProviderService threads consume high CPU.  TempFileProviderService threads consume high CPU as they poll their non empty task queue. This is ultimately due to a flaw in the JDK ThreadPoolExecutor code (https://bugs.openjdk.java.net/browse/JDK-8129861), impacting ScheduledThreadPoolExecutors that use a core size of 0 and a default 0 keepalive timeout.

While the executor queue is not empty, the executor does not allow the pool to go below 1 thread. So the one remaining work thread keeps looping over its poll call with a 0 timeout.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Use the attached byteman script to force work to the TempFileProviderService threads.
2. Deploy and undeploy an app
3.

Actual results:

A TempFileProviderService thread consumes high CPU while polling the queue

Expected results:

No high CPU usage from TempFileProviderService threads


Additional info:

Comment 1 Aaron Ogburn 2015-11-03 21:06:15 UTC
Created attachment 1089218 [details]
WFCORE-1093.btm

Comment 2 Aaron Ogburn 2015-11-03 21:15:07 UTC
PR: https://github.com/jbossas/jboss-eap/pull/2614

Comment 4 Mike McCune 2016-03-28 22:15:42 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 6 Jiří Bílek 2016-08-31 07:29:57 UTC
Verified with EAP 6.4.10.CP.CR2

Comment 7 Petr Penicka 2017-01-17 13:02:11 UTC
Retroactively bulk-closing issues from released EAP 6.4 cummulative patches.

Comment 8 Petr Penicka 2017-01-17 13:02:58 UTC
Retroactively bulk-closing issues from released EAP 6.4 cummulative patches.


Note You need to log in before you can comment on or make changes to this bug.