Chapter 9. Memory and Object Management
9.1. Annotator Management for Multithreaded Applications
For a multithreaded application it is recommended that a pool of Annotators be constructed. This is because Annotators must be used on a per-thread basis, and it is desirable to avoid the overhead of creating Annotators each time one is required. The settings of Annotators cannot be changed after they are built so if multiple configurations are required they should be stored separately.
9.2. Memory
The minimum Java heap required to run RBL-JE smoothly is 1.5 GB. It has been observed that an - Xmx setting of 8 GB allows for optimal performance in significantly multithreaded environments. This memory setting accounts for the simultaneous use of multiple languages.