[ 
https://issues.apache.org/jira/browse/UIMA-1540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12751339#action_12751339
 ] 

Tommaso Teofili commented on UIMA-1540:
---------------------------------------

Perhaps private static class CasQueueEntry should be refactored to implement 
Runnable and launched by a ThreadPool.

> Uima AS client consumes too much CPU while waiting for a free CAS 
> ------------------------------------------------------------------
>
>                 Key: UIMA-1540
>                 URL: https://issues.apache.org/jira/browse/UIMA-1540
>             Project: UIMA
>          Issue Type: Bug
>          Components: Async Scaleout
>    Affects Versions: 2.2.2AS
>            Reporter: Jerry Cwiklik
>            Assignee: Jerry Cwiklik
>             Fix For: 2.3AS
>
>
> The UIMA AS client enters a busy loop in the getCAS() in 
> BaseUIMAAsynchronousEngineCommon_impl. Since a CAS instance may not be 
> available for awhile, this code wastes CPU cycles by continuously testing for 
> null and trying again. Put the thread to sleep for some time before testing 
> for CAS availability again.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to