Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-1540

Uima AS client consumes too much CPU while waiting for a free CAS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3AS
    • 2.3AS
    • Async Scaleout
    • None

    Description

      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.

      Attachments

        Activity

          People

            cwiklik Jaroslaw Cwiklik
            cwiklik Jaroslaw Cwiklik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: