From 7ea2cd1ce972d3b48007471a4820de2b00ba2743 Mon Sep 17 00:00:00 2001 From: Will Hunt Date: Thu, 13 May 2021 10:55:57 +0100 Subject: Set PYTHONMALLOC to malloc in start.py --- changelog.d/xxxx.misc | 1 + docker/start.py | 1 + 2 files changed, 2 insertions(+) create mode 100644 changelog.d/xxxx.misc diff --git a/changelog.d/xxxx.misc b/changelog.d/xxxx.misc new file mode 100644 index 0000000000..5f9dcc94bd --- /dev/null +++ b/changelog.d/xxxx.misc @@ -0,0 +1 @@ +Ensure python uses `malloc` when running Synapse in Docker. \ No newline at end of file diff --git a/docker/start.py b/docker/start.py index 16d6a8208a..55faca600d 100755 --- a/docker/start.py +++ b/docker/start.py @@ -218,6 +218,7 @@ def main(args, environ): if os.path.isfile(jemallocpath): environ["LD_PRELOAD"] = jemallocpath + environ["PYTHONMALLOC"] = "malloc" else: log("Could not find %s, will not use" % (jemallocpath,)) -- cgit 1.5.1