diff options
author | Erik Johnston <erik@matrix.org> | 2016-01-08 16:52:15 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-01-08 16:52:15 +0000 |
commit | 29e595e5d4c9e23c438d7bb6478977ab4ebf4279 (patch) | |
tree | 46b2cf9bacbaacb18cdbd85fa0a6d0b167143018 /synapse/app/homeserver.py | |
parent | Merge pull request #456 from matrix-org/store_event_actions (diff) | |
parent | Turn on core dumps (diff) | |
download | synapse-29e595e5d4c9e23c438d7bb6478977ab4ebf4279.tar.xz |
Merge pull request #474 from matrix-org/erikj/core_dump
Turn on core dumps
Diffstat (limited to 'synapse/app/homeserver.py')
-rwxr-xr-x | synapse/app/homeserver.py | 7 |
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): |