summary refs log tree commit diff
path: root/synapse/app
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-01-07 15:28:40 +0000
committerErik Johnston <erik@matrix.org>2016-01-07 15:34:30 +0000
commit33bef689c1c712776d4277f5a71009090b9d6029 (patch)
tree6ef0165e72541592e2fc321fd66f079aa45ef4f9 /synapse/app
parentUse logger not logging (diff)
downloadsynapse-33bef689c1c712776d4277f5a71009090b9d6029.tar.xz
Turn on core dumps
Diffstat (limited to '')
-rwxr-xr-xsynapse/app/homeserver.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py
index 14ce9cd800..58a4c812f6 100755
--- a/synapse/app/homeserver.py
+++ b/synapse/app/homeserver.py
@@ -375,10 +375,13 @@ def change_resource_limit(soft_file_no):
             soft_file_no = hard
 
         resource.setrlimit(resource.RLIMIT_NOFILE, (soft_file_no, hard))
-
         logger.info("Set file limit to: %d", soft_file_no)
+
+        resource.setrlimit(
+            resource.RLIMIT_CORE, (resource.RLIM_INFINITY, resource.RLIM_INFINITY)
+        )
     except (ValueError, resource.error) as e:
-        logger.warn("Failed to set file limit: %s", e)
+        logger.warn("Failed to set file or core limit: %s", e)
 
 
 def setup(config_options):