[
https://issues.apache.org/jira/browse/OOZIE-3160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16531715#comment-16531715
]
Robert Kanter commented on OOZIE-3160:
--------------------------------------
+1 on having a design document. Not only is this a critical part of Oozie, but
we also haven't made any _real_ changes in at least 4 years, and even that was
relatively minimal. Prior to that, it hadn't been touched since Oozie 2.2 back
in 2011!
https://github.com/apache/oozie/commits/master/core/src/main/java/org/apache/oozie/util/PriorityDelayQueue.java
> PriorityDelayQueue put()/take() can cause significant CPU load due to busy
> waiting
> ----------------------------------------------------------------------------------
>
> Key: OOZIE-3160
> URL: https://issues.apache.org/jira/browse/OOZIE-3160
> Project: Oozie
> Issue Type: Bug
> Components: core
> Environment: all platforms
> Reporter: jj
> Assignee: Peter Bacsko
> Priority: Major
> Attachments: 11111111111111.png, 222222222222222222.png,
> OOZIE-3160-POC01.patch
>
>
> oozie process always consume high cpu. in my mechine,around 10%.
> I check the source code,find take() method in PriorityDelayQueue class。
> code:
> {code:java}
> public QueueElement<E> take() throws InterruptedException {
> QueueElement<E> e = poll();
> while (e == null) {
> Thread.sleep(10);
> e = poll();
> }
> return e;
> }
> {code}
> i think it's the reason of this problem. it's keep while, not await.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)