Changing the Link temporary directory

To change the HCL Link temporary directory, complete the following steps:

  1. Create a new directory. Ensure that the location is not mounted with the noexec option. Check the output of the mount. For example, you can run the following from a command window:
     
    mkdir /opt/hiptmp
    chmod 777 /opt/hiptmp
    
  2. Add a new line to tomcat-context/install/restapi/tomcat/setenv.sh to specify the new directory. For example:
    export JAVA_OPTS="$JAVA_OPTS -Djava.io.tmpdir=/opt/hiptmp"
  3. Modify the existing lines in config.yaml for the long and short workers as shown here:
    
    longTaskProcessJvmOptions="-Xmx2g -Djava.io.tmpdir=/opt/hiptmp" 
    shortTaskProcessJvmOptions="-Djava.io.tmpdir=/opt/hiptmp"
  4. Restart the Link.