You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2018/10/03 11:08:43 UTC

[cloudstack] branch 4.11 updated: systemvm: baremetal-vr: reduce memory usage (#2866)

This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch 4.11
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.11 by this push:
     new 8c0b9d6  systemvm: baremetal-vr: reduce memory usage (#2866)
8c0b9d6 is described below

commit 8c0b9d6202728499481240f4c95aa9bada363344
Author: René Moser <ma...@renemoser.net>
AuthorDate: Wed Oct 3 13:08:32 2018 +0200

    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.
---
 systemvm/debian/opt/cloud/bin/baremetal-vr.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/systemvm/debian/opt/cloud/bin/baremetal-vr.py b/systemvm/debian/opt/cloud/bin/baremetal-vr.py
index 20352dd..b8dacc7 100755
--- a/systemvm/debian/opt/cloud/bin/baremetal-vr.py
+++ b/systemvm/debian/opt/cloud/bin/baremetal-vr.py
@@ -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)