diff options
author | Brad Bishop <bradleyb@us.ibm.com> | 2015-12-02 11:13:20 -0500 |
---|---|---|
committer | Brad Bishop <bradleyb@us.ibm.com> | 2015-12-02 11:15:08 -0500 |
commit | b7f756c0054bbd6c7b9e46334614ba131feb9fbc (patch) | |
tree | 2ba4d31f1e6537385e704f71abe9bc33a5f88926 | |
parent | 34cae732597fb3d4b18a23b6494efdbfeca2033b (diff) | |
download | phosphor-rest-server-b7f756c0054bbd6c7b9e46334614ba131feb9fbc.tar.gz phosphor-rest-server-b7f756c0054bbd6c7b9e46334614ba131feb9fbc.zip |
Drop number of Rocket threads to 1
By default Rocket creates a threadpool 8 deep which uses a fair
amount of memory. We don't need a multi-threaded server so this
patch drops the min/max to 1.
-rw-r--r-- | obmc-rest | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -589,5 +589,7 @@ if __name__ == '__main__': 443, default_cert, default_cert), - 'wsgi', {'wsgi_app': app}) + 'wsgi', {'wsgi_app': app}, + min_threads = 1, + max_threads = 1) server.start() |