{"id":1058,"date":"2011-11-14T15:58:35","date_gmt":"2011-11-14T23:58:35","guid":{"rendered":"http:\/\/digitalnigel.com\/wordpress\/?p=1058"},"modified":"2012-01-23T13:48:08","modified_gmt":"2012-01-23T21:48:08","slug":"asterisk-memory-usage","status":"publish","type":"post","link":"https:\/\/digitalnigel.com\/wordpress\/?p=1058","title":{"rendered":"Asterisk Memory Usage"},"content":{"rendered":"<p>So, I recently went and updated my google password, as I do every so often, and managed to get most things updated fairly quickly. However, it seems I forgot about my asterisk server.<\/p>\n<p>I have my asterisk server configured to connect in with my Google Voice account via jabber, just like GTalk does, so I can use my desk phone to make and receive phone calls. Seeing as how I don&#8217;t make or receive a ton of calls, I didn&#8217;t really notice that asterisk could no longer connect to Google Voice. That is, until the server started crashing&#8230;<\/p>\n<p>At first it crashed, and I didn&#8217;t really look too deeply into it. The server I have asterisk running on is a VM running on VirtualBox on my mac. VirtualBox isn&#8217;t known for having rock solid kernel drivers, so I chocked it up to a fluke. Then I went and took a look this afternoon at my system stats graphs, and noticed the ram was totally used up, and the swap space was rapidly diminishing. Doing a little digging I saw it was the asterisk process, and logging into the asterisk CLI, saw a billion errors about it complaining of an incorrect password.<\/p>\n<p>A-HA!<\/p>\n<p>Anyway, to cut a long story short, I fixed the password and now asterisk is happy and not making my server all crashy. Also I filed a bug report. I kinda figure crashing a system is not the intended failure mode for an incorrect password.<\/p>\n<p>Here&#8217;s some pretty graphs of memory and swap usage during the crashy period.<\/p>\n<div id='gallery-1' class='gallery galleryid-1058 gallery-columns-2 gallery-size-thumbnail'><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2012\/01\/asterisk_mem.jpg'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"65\" src=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2012\/01\/asterisk_mem-150x65.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-1059\" srcset=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2012\/01\/asterisk_mem-150x65.jpg 150w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2012\/01\/asterisk_mem-300x131.jpg 300w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2012\/01\/asterisk_mem.jpg 603w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='wp-caption-text gallery-caption' id='gallery-1-1059'>\n\t\t\t\tMemory\n\t\t\t\t<\/dd><\/dl><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2012\/01\/asterisk_swap.jpg'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"65\" src=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2012\/01\/asterisk_swap-150x65.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-1060\" srcset=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2012\/01\/asterisk_swap-150x65.jpg 150w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2012\/01\/asterisk_swap-300x131.jpg 300w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2012\/01\/asterisk_swap.jpg 603w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='wp-caption-text gallery-caption' id='gallery-1-1060'>\n\t\t\t\tSwap\n\t\t\t\t<\/dd><\/dl><br style=\"clear: both\" \/>\n\t\t<\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>So, I recently went and updated my google password, as I do every so often, and managed to get most things updated fairly quickly. However, it seems I forgot about my asterisk server. I have my asterisk server configured to &hellip; <a href=\"https:\/\/digitalnigel.com\/wordpress\/?p=1058\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-1058","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1058","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1058"}],"version-history":[{"count":1,"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1058\/revisions"}],"predecessor-version":[{"id":1061,"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1058\/revisions\/1061"}],"wp:attachment":[{"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1058"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1058"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1058"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}