Are you talking about https://github.com/cloudflare/luajit-mm?
This work never, ever got chance to be tested in the production
environment,
because nobody review the code (partially because it is bit involved).
One year later, I crank out a stupid, super-simple one here (give 2G
space as well)
https://github.com/cloudflare/ljmm
It looks more like a piece of crap than anything else; however, it's
simple and
very stable. Our system has been running with this code for half year
now; it works
like a charm:-)
If you can use it in your production environment if:
- your system is running on system (it support LInux only)
- you don't care "hack".
- you don't care marginal degradation in mmap64() system call in luajit.
(it only impact the mmap64() in luajit or other component
statically linked to Nginx).
To use this module, you don't need to change source code, you just need
to change
Nginx's configure command option.
On 02/21/2016 12:27 AM, Lucien Li wrote:
目前我利用ngx+lua 的 ngx.thread 同时发起50个线程去后端服务器请求获取数
据, 当压力达到一定情况的时候, 出现lua vm内存不足的问题,
想请教下春哥, luajit-mm 怎么给luajit打上补丁? 怎样才能生效呢?
比较弱智的问题, 感谢了! 期待您的回复!
--