【问题标题】:Failed to allocate bytes in slab allocator for memtx_tuple Tarantool未能为 memtx_tuple Tarantool 在平板分配器中分配字节
【发布时间】:2020-09-15 07:34:21
【问题描述】:

客户端写入 Tarantool memtx 时出现错误“Failed to allocate 153 bytes in slab allocator for memtx_tuple”的原因是什么?

【问题讨论】:

  • 解释你想做什么。

标签: lua tarantool


【解决方案1】:

这意味着 memtx 引擎内存不足。可用于存储在 memtx 中的数据和索引的内存受 box.cfgmemtx_memory 选项限制,默认为 256Mb。可以在运行时增加此限制:

-- add 512Mb
box.cfg({memtx_memory = box.cfg.memtx_memory + 512 * 2^20})

这里是关于监控内存使用功能的文档部分:

https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_slab/#lua-function.box.slab.info

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-03-25
    • 1970-01-01
    • 2018-05-04
    • 1970-01-01
    • 2022-09-17
    • 1970-01-01
    相关资源
    最近更新 更多