Skip to content

Commit 7cd8265

Browse files
dylanwhmars-f
authored andcommittedDec 19, 2018
Limit memory usage to 800M
Summary: This sets a limit on the address space to 800M, which means we'll get a python error before heroku kills our process. Reviewers: mars Reviewed By: mars Bug #: 1514822 Differential Revision: https://phabricator.services.mozilla.com/D14971
1 parent 36a8286 commit 7cd8265

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎bin/process-queue-messages

+4
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,9 @@ For help, run:
1212
"""
1313

1414
from committelemetry.tool import process_queue_messages
15+
import resource
16+
17+
MEM_LIMIT = int(8e8)
18+
resource.setrlimit(resource.RLIMIT_AS, (MEM_LIMIT, MEM_LIMIT))
1519

1620
process_queue_messages()

0 commit comments

Comments
 (0)
Failed to load comments.