How to fix the execution of Information Link that never ends and Spotfire Analyst hangs after receiving an OOM error.

How to fix the execution of Information Link that never ends and Spotfire Analyst hangs after receiving an OOM error.

book

Article ID: KB0070186

calendar_today

Updated On:

Products Versions
Spotfire Server 12.1 and Higher

Description


An OOM error may occur on attempting to create a default information model when the data is large and the heap size of the Information Services subprocess is small. After receiving an OOM error, if an attempt is made to execute any information link, the execution of the information link never ends. If tried to cancel the execution using the Cancel button, it fails to cancel and the analyst goes into a hung state.

Secondly, an analyst will also hang if opening the Information Designer from the Data Menu after restarting the Spotfire Analyst.

Even if restarting the Analyst client, the IS external process is still at its OOM stage. Restarting the analyst client does not free up the memory of the IS process.

Environment

All

Resolution


To recover the Analyst, Information Link execution and Information Service process itself as soon as OOM happens, the only possible way is to restart the IS process.

So to resolve this, You need to export the Spotfire Server Configuration and add  "-XX:+ExitOnOutOfMemoryError" as a JVM_OPTS in the exported configuration.xml file. Once the configuration is added, import the Server configuration and restart the Spotfire Server.

Locate the <information-services>  section in the configuration.xml.

 
<information-services> 
     <external-process> 
          <jvm-opts> 
               <argument>-XX:+ExitOnOutOfMemoryError</argument> 
          </jvm-opts> 
     </external-process> 
</information-services>


This will kill the IS process and will restart automatically as per the existing functionality. According to the current IS process design,  there is a max restart threshold which is hardcoded to 3, and the server will wait for an hour to restart the IS process after this threshold.
 

Issue/Introduction

This article talks about how to fix the execution of information link that never ends and Spotfire Analyst is stuck in hung state when the Information Service external process goes out of memory.

Additional Information

Document :  Export and Import Server Configuration