[PATCH phosphor-rest-server] Drop number of Rocket threads to 1
OpenBMC Patches
openbmc-patches at stwcx.xyz
Thu Dec 3 03:20:28 AEDT 2015
From: Brad Bishop <bradleyb at us.ibm.com>
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.
---
obmc-rest | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/obmc-rest b/obmc-rest
index c5ba8dc..2c5e7e1 100644
--- a/obmc-rest
+++ b/obmc-rest
@@ -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()
--
2.6.3
More information about the openbmc
mailing list