-
Notifications
You must be signed in to change notification settings - Fork 656
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
luaL_newstate() fails when limited amount of memory is available #2158
Comments
luaL_newstate()
fails when limited amount of memory is available
This is the mmap that seems to fail
|
Issue is due to LuaJIT that only
This is not enough as, on large installations, the first 2GB could be easily be already used by ntopng (e.g., to keep the hash tables). To allow LuaJIT to use more memory, it should be compiled with Hence, we are considering to drop LuaJIT in favour of normal Lua. Indeed, the benefits of JIT in ntopng are limited as new interpreters are spawned continuously. |
fixed as part of 64d969f |
Lua fails to create
luaL_newstate()
when a limited amount of memory is available in the system. As other memory allocations (malloc/calloc/new) don't fail, the failure could be dependent from the lua implementation ofluaL_newstate()
.To reproduce systematically:
dummy0
./ntopng -i dummy0 --capture-direction=1 -n 3 --dont-change-user --disable-login 1 -X 4000000 -x 4000000 -g 1 -m "0.0.0.0/0"
pfsend -i stack:dummy0 -b 800000 -r 1
The text was updated successfully, but these errors were encountered: