Software /
code /
prosody-modules
Diff
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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mod_log_events_by_memory/README.markdown Mon Jun 10 14:38:06 2019 +0200 @@ -0,0 +1,8 @@ +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 +``` +