2

This question was asked earlier here

But didn't mention in which file and what constant, we need to change this limit.

I found few checks in test code but not in source code

ep-engine/ep_testsuite.cc:

rv = h1->allocate(h, NULL, &it, "key", 3, 20 * 1024 * 1024, 0, 0);
memcachetest/main.c:    if (size > 1024 * 1024 *20) {

Can you please help me here.

1 Answer 1

1

It's hardcoded in the configuration.json file in the ep-engine project under the variable name max_item_size. You could modify it here and build the project or you can also specify a different value on the command line when starting memcached. For example if you just wanted to run the our memcached without all of the cluster management stuff you can run:

./memcached -E (path to ep-engine lib 'ep.so') -e max_item_size=your_size

1
  • Just now, I found in ep_engine.cc >> maxItemSize(20*1024*1024). Thanks a lot Mike. I will get back to you If I have any more issues.
    – Balu
    Feb 21, 2012 at 20:59

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.