File

mod_log_events_by_memory/README.markdown @ 3615:5fe34e5f9829

mod_log_events_by_memory: Log events where Lua memory usage increased
author Kim Alvefur <zash@zash.se>
date Mon, 10 Jun 2019 14:38:06 +0200
child 3617:61b9c89db212
line wrap: on
line source

This module compares the memory usage reported by Lua before and after
each event and reports it to the log if it exceeds the configuration
setting `log_memory_threshold` (in bytes).

``` lua
log_memory_threshold = 20*1024
```