OxygenXML web author server times out after a certain hours/days of inactivity

Having trouble installing Oxygen? Got a bug to report? Post it all here.
akshatTR
Posts: 7
Joined: Mon Dec 12, 2022 11:19 pm

OxygenXML web author server times out after a certain hours/days of inactivity

Post by akshatTR »

Hello, we have our web author server hosted on AWS which internally connects to our data server by implementing URLStreamHandlerWithContext. After a certain days of inactivity for example after the weekend, when we try to access the editor on web page it shows "Document could not be loaded" error. When we see the logs we see timeout errors in connecting to the data server.
The architecture for this we author is ECS tasks, so we logged in to the task instance and we tried to connect to the data URL through the console. But the connection to the data server works from the console but not from tomcat/web author server. Here are the error logs:

com.tr.gcs.oxygenxml.storage.plugin.StorageUrlConnection - ------handleException --- ro.sync.basic.net.http.HttpException: Connect to contentresource-qa.gcs.int.thomsonreuters.com:443 [contentresource-qa.gcs.int.thomsonreuters.com/10.150.86.247, contentresource-qa.gcs.int.thomsonreuters.com/10.150.89.232, contentresource-qa.gcs.int.thomsonreuters.com/10.150.82.182] failed: connect timed out (https://contentresource-qa.gcs.int.thom ... bbab4/data)

com.oxygenxml.webauthor.SecurityManager - [PLUGIN FIREWALL DECISION] Plugin GCS Storage REST connector allowed connection to host contentresource-qa.gcs.int.thomsonreuters.com:443
cristi_talau
Posts: 496
Joined: Thu Sep 04, 2014 4:22 pm

Re: OxygenXML web author server times out after a certain hours/days of inactivity

Post by cristi_talau »

Hello,
The problem you describe seems to be related to Java caching the IP for a DNS lookup indefinitely. You can follow the instructions here to lower the lifetime of this cache: https://docs.aws.amazon.com/sdk-for-jav ... m-ttl.html .
Best,
Cristian
Post Reply