---
title: "Discussion on \"Analyze Lua Memory Leak With Systemtap\" | Hashnode"
description: "Discussion on \"Analyze Lua Memory Leak With Systemtap\". The memory used by lua codes is managed by the GC, not calling malloc/free directly.\nThe luajit GC uses mark-and-sweep algorithm. In simple words, it will links all gc objects in a\nglobal list. When the memory is in pressure, it would trigger recycle..."
url: "https://hashnode.com/posts/analyze-lua-memory-leak-with-systemtap/63482810cef353da4db66b16"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Analyze Lua Memory Leak With Systemtap](https://luajit.io/analyze-lua-memory-leak-with-systemtap?utm_source=hashnode&utm_medium=feed)

The memory used by lua codes is managed by the GC, not calling malloc/free directly. The luajit GC uses mark-and-sweep algorithm. In simple words, it will links all gc objects in a global list. When the memory is in pressure, it would trigger recycle...

Oct 13, 2022 · 1 min read · luajit.io  
Read the article

-   [#luajit](https://hashnode.com/tag/luajit)
-   [#openresty](https://hashnode.com/tag/openresty)
-   [#nginx](https://hashnode.com/tag/nginx)
-   [#systemtap](https://hashnode.com/tag/systemtap)

## Written by

[Jinhua Luo](https://hashnode.com/@kingluo)

@kingluo

  
[View profile](https://hashnode.com/@kingluo)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
