Merge pull request #75 from snikket-im/fix/tweak-gc-defaults

prosody: Tune GC to be more aggressive by default
This commit is contained in:
Matthew Wild 2021-11-11 14:57:53 +00:00 committed by GitHub
commit 2d623e7bf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -29,6 +29,11 @@ data_path = "/snikket/prosody"
pidfile = "/var/run/prosody/prosody.pid"
-- Aggressive GC to reduce resource consumption. These values are not
-- incredibly scientific, but should be good for a small private server.
-- They should be reviewed on the upgrade to Lua 5.4.
gc = { threshold = 100, speed = 750 }
modules_enabled = {
-- Generally required