Hello folks,
I’m trying to set up my own LT instance. What is the best way to start LT as https server?
Now I use “/opt/java/bin/java -jar ./languagetool-server.jar --config ./server.cfg --port 8081”. Most time it works fine, but sometimes nginix (I use it in front of LT) can’t establish a connection with LT in reasonable time.
Let me show you an example
[16:36:56] “POST /v2/check HTTP/1.1” 200 3147 “-” “time:0.072/0.175/0.177”
[16:37:03] “POST /v2/check HTTP/1.1” 200 3147 “-” “time:0.070/0.148/0.149”
[16:52:49] “POST /v2/check HTTP/1.1” 200 3147 “-” “time:0.204/1.373/1.376”
[17:05:43] “POST /v2/check HTTP/1.1” 504 183 “-” “time:10.009/10.009/10.009”
[17:06:03] “POST /v2/check HTTP/1.1” 200 3147 “-” “time:0.073/0.238/0.240”
At 16:52:49 LT responded in 0.2sec, but at 17:05:43 it took more than 10sec to establish a connection to LT. Shortly after that (at 17:06:03) everything was fine again.
What is the root cause of such behaviour? Maybe I somehow tune java vitrual machine environment for getting more predictable response time?