Tuesday, October 6, 2020

Sitecore XC (9.3) - Fix for OOM command not allowed when used memory

 During the CD2 configuration for one of the environment, I got below error 

ERR Error running script (call to f_2cf3a5ca51adf9b3b3500002e73e176dc3c54e26): @user_script:2: @user_script: 2: -OOM command not allowed when used memory > 'maxmemory'.   

I took reference from these links

  1. https://ma.ttias.be/redis-oom-command-not-allowed-used-memory-maxmemory/
  2. https://stackoverflow.com/questions/18430324/how-to-debug-the-error-oom-command-not-allowed-when-used-memory-maxmemory

After the investigation, I found this is because of the Redis cache memory issue, I have increased the size based on the analyzed load.

here are the steps to upload it -

# Redis configuration file example

# it in the usual form of 1k 5GB 4M and so forth:

# 1k => 1000 bytes

# 1kb => 1024 bytes

# 1m => 1000000 bytes

# 1mb => 1024*1024 bytes

# 1g => 1000000000 bytes

# 1gb => 1024*1024*1024 bytes

# units are case insensitive so 1GB 1Gb 1gB are all the same.

Navigate to the file C:\Program Files\Redis and update the value based on your analysis,

No comments:

Post a Comment