Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这个问题之前在这里被问过
但是没有提到在哪个文件和什么常量,我们需要改变这个限制。
我在测试代码中发现很少检查,但在源代码中没有
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) {
你能帮帮我吗?
它被硬编码在 ep-engine 项目的 configuration.json 文件中,变量名为 max_item_size。您可以在此处修改它并构建项目,也可以在启动 memcached 时在命令行上指定不同的值。例如,如果您只想运行我们的 memcached 而没有所有集群管理的东西,您可以运行:
./memcached -E (ep-engine lib 'ep.so'的路径) -e max_item_size=your_size