webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only

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

Tue July 25, 2023 01:59 AM

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?


#Tuesday-troubleshooting
#API-Gateway
#webMethods
#API-Management

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

Comments

Tue July 25, 2023 01:59 AM

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

echo $ES_TMPDIR

Notes:
The following property determines the tmpdir for ElasticSearch.

<SAG_INSTALL_DIR>/InternalDataStore/config/jvm.options
-Djava.io.tmpdir=${ES_TMPDIR}

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


#API-Gateway
#Tuesday-troubleshooting
#API-Management
#webMethods