Skip to content
This repository has been archived by the owner on Jan 5, 2021. It is now read-only.

Use content_by_lua and access_by_lua instead of by_file #11

Merged
merged 2 commits into from
Nov 18, 2014

Conversation

cbarraford
Copy link
Contributor

Noticed a bug where if you use content_by_lua_file instead of content_by_lua, the lua vm leaks memory until it crashes.

In dev, i could run a bash for loop hitting /batch api endpoint and see memory utilization would go up until the VM crashes (about 1GB). Even if i ran garbage collection manually, it would help but never get back to less than hundreds of MBs.

Using the new way, i was unable to get memory utilization of the VM to go above 1 or 2 MBs.

cbarraford added a commit that referenced this pull request Nov 18, 2014
Use content_by_lua and access_by_lua instead of by_file
@cbarraford cbarraford merged commit 4b01666 into master Nov 18, 2014
@kippandrew
Copy link
Contributor

Does this restart the LUA VM every request?

@cbarraford
Copy link
Contributor Author

nope

@jspiewak jspiewak deleted the bug/memory_leak branch September 15, 2016 14:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants