Date: Tue, 19 Mar 2024 08:25:13 +0000 (UTC) Message-ID: <87237918.1220.1710836713919@node2041-mqi-confluence.web.inetsolutions.cloud> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_1219_1803362642.1710836713919" ------=_Part_1219_1803362642.1710836713919 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
openTMStermTagger is not part of translate5, but translate5 builds on it= to find and highlight terminology.
First some permissions has to be corrected:
sudo ch= mod 775 /var/www/translate5/application/modules/editor/ThirdParty/XliffTerm= Tagger/startServer.sh sudo chmod 775 /var/www/translate5/application/modules/editor/ThirdParty/Xl= iffTermTagger/stopServer.sh
The next step might not be necessary on most/some of the systems.
If Oracle Java is not your only installed Java version you have to do th= e next step. In all other cases it is still recommended to avoid problems.<= /p>
Open the file
/var/www/translate5/application/mod=
ules/editor/ThirdParty/XliffTermTagger/termtagger-server.conf
and change the following line<= /p>
#JAVA_C= MD=3Djava
to the location of the java 8, that you installed with the prerequisites= . If you are using Ubuntu 18.04, the path should be as follows:
JAVA_CM= D=3D/usr/lib/jvm/java-1.8.0-openjdk-amd64/bin/java
Attention: This should be the path to your Java, if you did follow the <= a href=3D"/display/CON/Server+environment+-+configure+from+scratch">transla= te5 Ubuntu installation manual. If you did install your Java in another= location, you have to customize the path accordingly.
By default translate5 uses only one openTMStermTagger = instance running on port 9001. For better performance for big data you can = use as many termTagger instances as you want with one translate5 instance. = If you want to do that, open the
/var/www/translate5/application/modules/editor/ThirdParty/XliffTermTag= ger/termtagger-server.conf
file and configure more op= enTMStermTagger instances, as shown there. Then
For a recommended TermTagger setup see OpenTMSTermTagger - recommended setup.
By default one termTagger instance uses 2500 MB memory. If you wan= t to decrease or increase that, open the file
/var/www/translate5/application/mod=
ules/editor/ThirdParty/XliffTermTagger/termtagger-server.conf
and change the following line<= /p>
TERM_TA= GGER_MEMORY_USAGE=3D2500M
to another value (2500M equals = 2,5GB of main memory; value is per TermTagger instance)
After that openTMStermTagger can be started as normal user, by call= ing the startServer script.
Atttention: Termtagger writes temporary data to the directory, from wher= e the following start script is called. Therefore call it from a directory,= where www-data has access and write permissions.
sudo -u= www-data /var/www/translate5/application/modules/editor/ThirdParty/XliffTe= rmTagger/startServer.sh
To stop the server call the stopServer script accordingly.
Warning / Recommendation
It is recommended to restart TermTagger services every night once. Exper= ience shows, that otherwise TermTagger will become slow.