summary refs log tree commit diff
path: root/synapse/app
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2021-05-06 15:54:07 +0100
committerGitHub <noreply@github.com>2021-05-06 15:54:07 +0100
commit8771b1337da9faa3b60cf0ec0a128a7de856f19e (patch)
tree48b4e8cae88de74ed6f43e79b1fc5a4ec0af55fe /synapse/app
parentRevert "Leave out optional keys from /sync (#9919)" (#9940) (diff)
downloadsynapse-8771b1337da9faa3b60cf0ec0a128a7de856f19e.tar.xz
Export jemalloc stats to prometheus when used (#9882)
Diffstat (limited to 'synapse/app')
-rw-r--r--synapse/app/_base.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/app/_base.py b/synapse/app/_base.py
index 638e01c1b2..59918d789e 100644
--- a/synapse/app/_base.py
+++ b/synapse/app/_base.py
@@ -37,6 +37,7 @@ from synapse.config.homeserver import HomeServerConfig
 from synapse.crypto import context_factory
 from synapse.logging.context import PreserveLoggingContext
 from synapse.metrics.background_process_metrics import wrap_as_background_process
+from synapse.metrics.jemalloc import setup_jemalloc_stats
 from synapse.util.async_helpers import Linearizer
 from synapse.util.daemonize import daemonize_process
 from synapse.util.rlimit import change_resource_limit
@@ -115,6 +116,7 @@ def start_reactor(
 
     def run():
         logger.info("Running")
+        setup_jemalloc_stats()
         change_resource_limit(soft_file_limit)
         if gc_thresholds:
             gc.set_threshold(*gc_thresholds)