From d145ba6ccc517b2c46b3121eba539a31e0a31d14 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Tue, 4 May 2021 14:00:12 +0100 Subject: Move jemalloc to metrics to a sepearte file, and load from app to get proper logs --- synapse/app/_base.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'synapse/app') diff --git a/synapse/app/_base.py b/synapse/app/_base.py index 638e01c1b2..a886caf07e 100644 --- a/synapse/app/_base.py +++ b/synapse/app/_base.py @@ -36,6 +36,7 @@ from synapse.app.phone_stats_home import start_phone_stats_home from synapse.config.homeserver import HomeServerConfig from synapse.crypto import context_factory from synapse.logging.context import PreserveLoggingContext +from synapse.metrics.jemalloc import setup_jemalloc_stats from synapse.metrics.background_process_metrics import wrap_as_background_process from synapse.util.async_helpers import Linearizer from synapse.util.daemonize import daemonize_process @@ -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) -- cgit 1.5.1