嗨 各位:
之前看春哥一个帖子,内容如下:
https://groups.google.com/d/msg/openresty-en/U0UP_rSYpPM/9oNDLWZWBgAJ
其中:“there is a memory limit in GC-managed memory in each LuaJIT VM (which is per worker). The limit is 4GB on i386 and 1GB on x86_64 (with the luajit-mm plugin, the limit can be 2 GB on x86_64). ”
我的问题:
一个项目中shared dict设置2GB,开始报“no memory”, 修改为4GB后,可以正常工作;
查看luajit官方文档:luajit2.1版本貌似已经没有这个限制了?“ LuaJIT 2.1 offers consistent 64 bit conversions for all integer formats. The unsigned formats also accept and convert negative numbers and re-interpret them as unsigned 64 bit integers.”
现在有点不确定,所以想请各位大大帮忙确定一下是否还有这个限制呢?
我使用的版本:
nginx version: openresty/1.9.7.4
LuaJIT 2.1.0-beta1 -- Copyright (C) 2005-2015 Mike Pall. http://luajit.org/
Linux *** 2.6.32-358.11.1.el6.x86_64 #1 SMP Wed Jun 12 03:34:52 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux