diff options
author | Will Hunt <will@half-shot.uk> | 2021-05-13 10:55:57 +0100 |
---|---|---|
committer | Will Hunt <will@half-shot.uk> | 2021-05-13 10:55:57 +0100 |
commit | 7ea2cd1ce972d3b48007471a4820de2b00ba2743 (patch) | |
tree | cc3eb5af7ea437413d3a26edc961e1a9d3a3a28c | |
parent | Incorporate changes from review (diff) | |
download | synapse-hs/use-malloc-in-docker.tar.xz |
Set PYTHONMALLOC to malloc in start.py github/hs/use-malloc-in-docker hs/use-malloc-in-docker
-rw-r--r-- | changelog.d/xxxx.misc | 1 | ||||
-rwxr-xr-x | docker/start.py | 1 |
2 files changed, 2 insertions, 0 deletions
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,)) |