You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "jj (JIRA)" <ji...@apache.org> on 2018/01/14 07:59:00 UTC

[jira] [Created] (OOZIE-3160) oozie high cpu usage problem

jj created OOZIE-3160:
-------------------------

             Summary: oozie high cpu usage problem
                 Key: OOZIE-3160
                 URL: https://issues.apache.org/jira/browse/OOZIE-3160
             Project: Oozie
          Issue Type: Bug
          Components: core
         Environment: all platforms
            Reporter: jj


oozie process always  consume  high cpu. in my mechine,around 10%. 

I check the source code,find take() method in PriorityDelayQueue class。

code:

public QueueElement<E> take() throws InterruptedException {
    QueueElement<E> e = poll();
    while (e == null) {
        Thread.sleep(10);
        e = poll();
    }
    return e;
}


i think it's the reason of this problem. it's keep while, not await.  



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)