Re: Query on LuaJIT Garbage Collector (GC)

  • From: Atul Thosar <atulthosar@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Tue, 24 Jul 2018 11:59:07 +0530

BTW, in luaJIT can I set the memory limit (Something similar to what is in
Java).

--
BR,
Atul
​ Thosar​


On 23 July 2018 at 22:30, Atul Thosar <atulthosar@xxxxxxxxx> wrote:

Hi All,

I am using luaJIT (v2.1.0-beta1) to run my application written in lua
(v5.1.4).

I see memory increases continuously when application ran under load.
However memory stabilizes after certain number of hours. But every time
memory stabilization time is not the same. When I stop the load, memory
utilization does not come down to the value before the load.

I am aware that LuaJIT has Garbage Collector (GC), but it is not clear
when it is invoked. Is there any relation of luaJIT memory utilization with
available memory (RAM) of the system?

Another query I have - As per Lua 5.1 specification (
http://www.lua.org/manual/5.1/manual.html#pdf-collectgarbage) we can call
collectgarbage API, but I am not sure will it initiate GC of luaJIT.

Any suggestions/pointers.

Thanks in Advance.


--
BR,
Atul
​ Thosar​

Other related posts: