Skip to content
  • There are no suggestions because the search field is empty.

Modify start scripts

Examples of modifying java run command in the start scripts based on specific deployment needs.

Changes made to the start script file will also apply when the Intelligence Hub is installed as a service.

Scenarios:

  • Specifying which JRE to use
  • Set environment variables
  • Specifying heap memory (see link to article)
  • Set HTTP Proxy for relevant connectors (Does not apply for REST Connector, but its Proxy can be configured on its Connector overview page)

start-windows.bat

pushd .
cd /D "%~dp0"

::check default java version
java --version

::prepend the new java version to %PATH% so that it is prioritized over the preexisting java in path
::"set" command will only affecting working session. It will not permanently add to path. "setx" will permanently add to global path.
::set PATH=C:\Java\jdk-21\bin;%PATH%

::you can also put in the absolute path to the specific java launcher instead of adding to %PATH%
::C:\Java\jdk-21\bin\java -cp "intelligencehub-runtime.jar;lib/*" com.highbyte.intelligencehub.runtime.Main start

::verify newly specified version of java
::java --version

::following is to specify the max heap memory allocation
::set JAVA_TOOL_OPTIONS="-Xmx512m" 

::set _JAVA_OPTIONS="-Xmx512m" 
::set _JAVA_OPTIONS="-Xmx8g" 
::set _JAVA_OPTIONS=
::set PUBLIC_abc="test"
java -Dhttp.proxyHost=0.0.0.0 -Dhttp.proxyPort=3128 -Dhttps.proxyHost=0.0.0.0 -Dhttps.proxyPort=3128 -Dhttp.nonProxyHosts="!*.s3.amazonaws.com|*iotsitewise*" -cp "intelligencehub-runtime.jar;lib/*" com.highbyte.intelligencehub.runtime.Main start

popd