Problem/Motivation
Setting up a new server I see the following error occasionally:
Notice: MemcachePool::set(): Server 127.0.0.1 (tcp 11211, udp 0) failed with: SERVER_ERROR object too large for cache (3) in Drupal\memcache\Driver\MemcacheDriver->set() (line 17 of modules/contrib/memcache/src/Driver/MemcacheDriver.php)
Software versions:
memcached: 1.6.9+dfsg-1 amd64
PHP: 8.0.21
php8.0-memcache: 8.0+4.0.5.2+3.0.9~20170802.e702b5f9+-7+0~20220117.28+debian11~1.gbp8ceec4 amd64
Proposed resolution
Work out how to either configure memcached to avoid the problem, or change Memcache to fix the problem.
Remaining tasks
Work out the best approach.
Do eet.
User interface changes
n/a
API changes
TBD
Data model changes
TBD
Comments
Comment #2
damienmckennaI modified /etc/memcached.conf to add this:
It might be worth documenting this problem and that the suggested fix is to change the -I value.
Comment #3
damienmckennaNote: the -I value must be specified with a capital letter, e.g. "5M".
Comment #4
elijah lynnThanks for this, I found your issue by searching for "Object too large"! I had this issue on an AWS Elasticache Memcache and fixed it by creating a custom param group and changed the value `max_item_size` to `4194304` (which is 4M) for our needs which resolved the error.
Comment #5
damienmckennaEven with the config set to 5M the error still happens :-\
In this latest case the site was reindexing the content on a Solr server with Search API.
Comment #6
japerryClosing as this isn't really an issue in the module per se.
Comment #7
damienmckennaLet's add this to the docs as a Known Issues item, or something similar. Assigning it to myself in the hopes I might throw something together for it.
Comment #8
damienmckennaHow about something like this?
Comment #10
japerryFair enough, pushed the readme fix!