{"id":11198,"date":"2023-01-15T12:42:48","date_gmt":"2023-01-15T20:42:48","guid":{"rendered":"https:\/\/www.coretechnologies.com\/blog\/?p=11198"},"modified":"2023-01-15T12:42:48","modified_gmt":"2023-01-15T20:42:48","slug":"recycle-leaky-program","status":"publish","type":"post","link":"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/recycle-leaky-program\/","title":{"rendered":"Q&#038;A: Can AlwaysUp Auto-Start and Recycle my Leaky Program Once per Day?"},"content":{"rendered":"<div align=\"center\"><img loading=\"lazy\" decoding=\"async\" class=\"no-lazy-load\" src=\"\/blog\/images\/qa-restart-application-on-schedule.webp\" style=\"margin-bottom:20px;\" title=\"Can AlwaysUp Restart my Leaky Program Once per Day?\" alt=\"Can AlwaysUp Restart my Leaky Program Once per Day?\" border=\"0\" width=\"380\" height=\"160\" \/><\/div>\n<div class=\"blog-qa-question-box\">\n<img loading=\"lazy\" decoding=\"async\" class=\"no-lazy-load\" src=\"https:\/\/cdn.coretechnologies.com\/images\/quotes-transparent-21x21.webp\" width=\"21\" height=\"21\" \/>&nbsp;&nbsp;I am trying out <a href=\"\/products\/AlwaysUp\/\">AlwaysUp<\/a> and so far I like the way it works. <\/p>\n<p>I&#8217;m running this program as a service is for only two reasons: to start when the computer boots and (the most important one) to be able to schedule it to stop and restart once a day at the time of my choosing. I need to do this or the program will run out of memory over time and cause all kinds of trouble when I am away from my computer for more than 24 hours.<\/p>\n<p>Is AlwaysUp capable of doing this?<\/p>\n<p align=\"right\">&mdash; Ron<\/p>\n<\/div>\n<p>Hi Ron.<\/p>\n<p>Yes, AlwaysUp can do both of the things you would like to do.<\/p>\n<h2 class=\"blog-caption\">AlwaysUp will start your program at boot<\/h2>\n<p>The first task &mdash; starting your program when your computer boots &mdash; was the main reason for building AlwaysUp. Rest assured that AlwaysUp will do everything in its power to ensure that your program starts quickly after a power cycle or any other event that causes your PC to reboot.<\/p>\n<p>Note that AlwaysUp provides a couple of options for when to launch your application:<\/p>\n<ol style=\"margin-bottom:24px\">\n<li>\n<p><b>Automatically, when the computer boots<\/b>: Starts your application as quickly as possible, usually seconds after boot<\/p>\n<\/li>\n<li>\n<p><b>Automatically, but shortly after the computer boots<\/b>: Runs your application about 2 minutes after boot, after critical operating system services (e.g. networking, security) have started.<\/p>\n<\/li>\n<\/ol>\n<p>Make your selection on the <b>General<\/b> tab when configuring your application:<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/start-application-options-alwaysup.png\" class=\"zoomPopup\" title=\"Options to start your application as a service\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/start-application-options-alwaysup.png\" title=\"Options to start your application as a service (click to enlarge)\" alt=\"Options to start your application as a service\" border=\"0\" width=\"411\" height=\"592\" \/><\/a><\/div>\n<h2 class=\"blog-caption\">AlwaysUp will restart\/recycle your program daily<\/h2>\n<p>The second task &mdash; recycling your application daily to keep it &#8220;fresh&#8221; &mdash; is easily done too.<\/p>\n<p>In fact, recycling an application is one of AlwaysUp&#8217;s most popular features! It comes in handy for programs that get sicker over time, like yours does.<\/p>\n<p>To illustrate, here are the steps to stop and restart your application at 3 AM every morning:<\/p>\n<ol style=\"margin-bottom:24px\">\n<li>\n<p>Edit your application in AlwaysUp.<\/p>\n<\/li>\n<li>\n<p>Switch to the <b>Monitor<\/b> tab. The settings on this screen specify when AlwaysUp should intervene and stop your application.<\/p>\n<\/li>\n<li>\n<p>Since we want to stop at a specific time, check the <b>Every<\/b> box, choose <b>Day<\/b> from the drop-down and enter 3:00 AM in the time field:<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/stop-application-daily-at-3am.png\" class=\"zoomPopup\" title=\"Stop your application daily at 3 AM\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/stop-application-daily-at-3am.png\" title=\"Stop your application daily at 3 AM (click to enlarge)\" alt=\"Stop your application daily at 3 AM\" border=\"0\" width=\"411\" height=\"592\" \/><\/a><\/div>\n<\/li>\n<li>\n<p>Switch to the <b>Restart<\/b> tab.<\/p>\n<\/li>\n<li>\n<p>Ensure that the <b>When your application stops, restart it<\/b> box at the top is checked. If not, AlwaysUp won&#8217;t restart your application after it stops it at 3 AM.<\/p>\n<p>By default, AlwaysUp will restart your program immediately but you can specify another schedule if you like:<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/restart-application-when-it-stops.png\" class=\"zoomPopup\" title=\"Restart your application after it stops\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/restart-application-when-it-stops.png\" title=\"Restart your application after it stops (click to enlarge)\" alt=\"Restart your application after it stops\" border=\"0\" width=\"411\" height=\"592\" \/><\/a><\/div>\n<\/li>\n<li>\n<p>Save your changes.<\/p>\n<\/li>\n<\/ol>\n<h2 class=\"blog-caption\">Putting it all together&#8230;<\/h2>\n<p>With the recommendations above in place, when your computer boots:<\/p>\n<ol style=\"margin-bottom:24px\">\n<li>\n<p>Windows will start AlwaysUp<\/p>\n<\/li>\n<li>\n<p>AlwaysUp will start your application<\/p>\n<\/li>\n<li>\n<p>AlwaysUp will watch your application and quickly restart it if it stops for any reason<\/p>\n<\/li>\n<\/ol>\n<p>And whenever 3 AM rolls around, AlwaysUp will:<\/p>\n<ol style=\"margin-bottom:24px\">\n<li>\n<p>Stop your application<\/p>\n<\/li>\n<li>\n<p>Restart your application &mdash; <a href=\"https:\/\/www.youtube.com\/watch?v=-JfEJq56IwI\" target=\"_blank\" rel=\"noopener\">so fresh, so clean<\/a>.<\/p>\n<\/li>\n<\/ol>\n<p>That addresses all your concerns, right? Please <a href=\"\/support\/\">let us know<\/a> if not.<\/p>\n<p style=\"margin-top: 30px\">\nBest of luck with your program!\n<\/p>\n<div align=\"center\">\n<div class=\"cta-button-1\">\n<table role=\"presentation\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" align=\"left\">\n<tbody>\n<tr>\n<td align=\"center\"><a href=\"\/blog\/tag\/alwaysup-tag\/\" title=\"AlwaysUp advice, tips and more\"><span><nobr>Read more articles about AlwaysUp&#8230;<\/nobr><\/span><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<!-- relpost-thumb-wrapper --><div class=\"relpost-thumb-wrapper\"><!-- filter-class --><div class=\"relpost-thumb-container\"><style>.relpost-block-single-image, .relpost-post-image { margin-bottom: 10px; }<\/style><h3>You may also like...<\/h3><div style=\"clear: both\"><\/div><div style=\"clear: both\"><\/div><!-- relpost-block-container --><div class=\"relpost-block-container relpost-block-column-layout\" style=\"--relposth-columns: 3;--relposth-columns_t: 2; --relposth-columns_m: 2\"><a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/mt4-build-600-with-alwaysup\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"Trouble with MT4 Build 600 and AlwaysUp?\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/metatrader4-logo-150x150.png\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">Trouble with MT4 Build 600 and AlwaysUp?<\/h2><\/div><\/div><\/a><a href=\"https:\/\/www.coretechnologies.com\/blog\/windows-services\/interact-with-desktop\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"Q&amp;A: Why doesn&#039;t Allow service to interact with desktop work?\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/qa-150x150.png\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">Q&amp;A: Why doesn&#039;t &quot;Allow service to interact with desktop&quot; work?<\/h2><\/div><\/div><\/a><a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/versus-service-protector\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"Q&amp;A: What&#039;s the Difference between AlwaysUp and Service Protector?\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/alwaysup-vs-service-protector-150x150.png\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">Q&amp;A: What&#039;s the Difference between AlwaysUp and Service Protector?<\/h2><\/div><\/div><\/a><\/div><!-- close relpost-block-container --><div style=\"clear: both\"><\/div><\/div><!-- close filter class --><\/div><!-- close relpost-thumb-wrapper -->","protected":false},"excerpt":{"rendered":"<p>&nbsp;&nbsp;I am trying out AlwaysUp and so far I like the way it works. I&#8217;m running this program as a service is for only two reasons: to start when the computer boots and (the most important one) to be able &hellip; <a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/recycle-leaky-program\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":11201,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[26,103,127,304],"class_list":["post-11198","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-alwaysup","tag-alwaysup-tag","tag-memory-leaks","tag-qa","tag-regular-restart"],"_links":{"self":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/11198","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=11198"}],"version-history":[{"count":15,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/11198\/revisions"}],"predecessor-version":[{"id":11777,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/11198\/revisions\/11777"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/media\/11201"}],"wp:attachment":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=11198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=11198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=11198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}