systemvm: baremetal-vr: reduce memory usage (#2866)

We see a suspicious continuous increase in memory usage. Kind of looks like a memory leak.

One thing noted during debugging is that flask is started in debug mode. This is not best practice for a production system.
This commit is contained in:
René Moser 2018-10-03 13:08:32 +02:00 committed by Rohit Yadav
parent fe10e684f9
commit 8c0b9d6202
1 changed files with 1 additions and 1 deletions

View File

@ -156,4 +156,4 @@ def notify_provisioning_done(mac):
if __name__ == '__main__':
server = Server()
shell("iptables-save | grep -- '-A INPUT -i eth0 -p tcp -m tcp --dport 10086 -j ACCEPT' > /dev/null || iptables -I INPUT -i eth0 -p tcp -m tcp --dport 10086 -j ACCEPT")
app.run(host='0.0.0.0', port=10086, debug=True)
app.run(host='0.0.0.0', port=10086)