You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Richard Eckart de Castilho (Jira)" <de...@uima.apache.org> on 2021/12/10 16:38:00 UTC
[jira] [Created] (UIMA-6399) RutaPatternCache prevents CPEEngine from terminating
Richard Eckart de Castilho created UIMA-6399:
------------------------------------------------
Summary: RutaPatternCache prevents CPEEngine from terminating
Key: UIMA-6399
URL: https://issues.apache.org/jira/browse/UIMA-6399
Project: UIMA
Issue Type: Bug
Components: Ruta
Reporter: Richard Eckart de Castilho
The {{RutaPatternCache}} creates a Caffeine cache internally which spawns a cleanup worker thread. If this thread is spawed while Ruta is running in a CPE, then the thread is added to the CPE's thread group. When the CPE is done processing, it waits for all the worker threads in its group to terminate. Normally, these are only the reader thread, the processor threads, the consumer thread, and the thread-group destroyer thread. The extra thread added via Caffeine causes the thread-group destroyer to believe that there are still workers running and thus it will never terminate the CPEEngine. That means, the engines and resources used in the engine will never be GCed.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)