webMethods API Gateway Q&A – API Gateway Elastic Search using default /tmp

Product/components used and version/fix level:

Operating System: All
Version: 10.5 and above

Detailed explanation of the problem:

API Gateway Elastic Search using default Operating System temporary location.
How to set a custom path?

To use the custom path, Internal Data Store jvm.options java.io.tmpdir can be updated to the desired location, or ES_TMPDIR environment variable can be set as per the custom path.

Example setup:

• Create temp folder
Example: /opt/wm105/InternalDataStore/temp

• Set $ES_TMPDIR environment variable with the desired temp path.

• Persisting Environment Variables for a User:

vi ~/.bash_profile
export ES_TMPDIR=/opt/wm105/InternalDataStore/temp

To immediately apply all changes to bash_profile
source ~/.bash_profile


The following property determines the tmpdir for ElasticSearch.


Reference: https://www.elastic.co/guide/en/elasticsearch/reference/current/es-tmpdir.html