I have a heavy document that is compiled with LuaLaTeX (TeXLive). On Linux, no problem. On Windows, it stop compiling in the middle of the document with the error:
! error: (lua): not enough memory ! ==> Fatal error occurred, no output PDF file produced!
It actually occurs just before the lualatex.exe compiler allocates 2GB of memory.
I have way enough memory on my computer, it occurs with any versions of LuaLaTeX (even the new 1.0.4 version / TeXLive 2017), it occurs on different Windows configurations, there is no special Lua code in the document.