dragonflydb / dragonfly

A modern replacement for Redis and Memcached
https://www.dragonflydb.io/
Other
25.97k stars 955 forks source link

Unbounded Lua heap memory growth #3426

Closed dranikpg closed 3 months ago

dranikpg commented 3 months ago
local res = {}
for j = 1,10000 do
  for i = 1, 100000 do
    table.insert(res, i)
  end
  print(#res)
end

leads to filling up all rss memory

there supposedly should be guards or limits

dranikpg commented 3 months ago

FIxed by #3431 as a manual solution before automating the problem