{"id":1035,"date":"2019-10-27T16:07:32","date_gmt":"2019-10-27T22:07:32","guid":{"rendered":"https:\/\/wmbuck.net\/blog\/?p=1035"},"modified":"2019-10-27T16:08:53","modified_gmt":"2019-10-27T22:08:53","slug":"memory-on-the-gateway-pi","status":"publish","type":"post","link":"https:\/\/wmbuck.net\/blog\/?p=1035","title":{"rendered":"Memory on the Gateway Pi"},"content":{"rendered":"\n<p>I now have 8 of these gateway boxes out there. This morning as I was checking backups on one of them, I observed that it took quite a long time to respond. I ran a top on it and was horrified to see that its memory use was 100% and so was its swap. Holy @#$%!@ Batman!<\/p>\n\n\n\n<p>Most of the memory was being used by the lxpanel. And (hangs head in embarrassment) there were actually two lxpanels running &#8211; one for the console and one in the vnc window I launch at startup. <\/p>\n\n\n\n<p>It seems the lxpanels leak. I don&#8217;t know how badly, but it doesn&#8217;t matter. These boxes are meant to run forever so even a tiny leak is eventually fatal. <\/p>\n\n\n\n<p>Well this was simple. I will seldom, if ever, need to get into a graphical environment remotely, and if I do I can always start vnc from the command line. So I took out the startvnc from the startup script. And I have even LESS need for a graphical console since there is not even a monitor on these things. So I set the default systemd target to multi-user.target. <\/p>\n\n\n\n<p>Did this on all the gateways that are running on pi-zeros. Those few running on bigger ubuntu boxes I didn&#8217;t really have the problem anyway. <\/p>\n\n\n\n<p>After rebooting them they come up with no lxpanels. I&#8217;ll watch the memory use, but I think this will fix the problem. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>I now have 8 of these gateway boxes out there. This morning as I was checking backups on one of them, I observed that it took quite a long time to respond. I ran a top on it and was horrified to see that its memory use was 100% and so was its swap. Holy &hellip; <a href=\"https:\/\/wmbuck.net\/blog\/?p=1035\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Memory on the Gateway Pi<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28,46,4,41,45,9],"tags":[],"class_list":["post-1035","post","type-post","status-publish","format-standard","hentry","category-backup","category-gateways","category-linux","category-networking","category-raspberry-pi","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1035"}],"collection":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1035"}],"version-history":[{"count":1,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1035\/revisions"}],"predecessor-version":[{"id":1036,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1035\/revisions\/1036"}],"wp:attachment":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1035"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1035"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1035"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}