Software / code / prosody-modules
Comparison
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 |
comparison
equal
deleted
inserted
replaced
| 3614:f74444b0e187 | 3615:5fe34e5f9829 |
|---|---|
| 1 This module compares the memory usage reported by Lua before and after | |
| 2 each event and reports it to the log if it exceeds the configuration | |
| 3 setting `log_memory_threshold` (in bytes). | |
| 4 | |
| 5 ``` lua | |
| 6 log_memory_threshold = 20*1024 | |
| 7 ``` | |
| 8 |