{"id":5252,"date":"2019-03-26T07:52:59","date_gmt":"2019-03-26T14:52:59","guid":{"rendered":"https:\/\/www.coretechnologies.com\/blog\/?p=5252"},"modified":"2019-03-26T07:52:59","modified_gmt":"2019-03-26T14:52:59","slug":"multiple-alpha-servers","status":"publish","type":"post","link":"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/multiple-alpha-servers\/","title":{"rendered":"Q &#038; A: How do I Prevent Multiple Alpha Application Servers from Running?"},"content":{"rendered":"<div align=\"center\"><img decoding=\"async\" src=\"\/blog\/images\/qa-avoid-multiple-applications.png\" title=\"Q &#038; A - Avoid Multiple Copies\" alt=\"Q &#038; A - Avoid Multiple Copies\" border=\"0\" ><\/div>\n<div class=\"blog-qa-question-box\">\n<img decoding=\"async\" src=\"\/images\/quotes-transparent-21x21.png\">&nbsp;&nbsp;I am using AlwaysUp to control my <a href=\"\/products\/AlwaysUp\/Apps\/RunAlphaFiveApplicationServerAsAService.html\">Alpha Anywhere Application Server<\/a>. I have noticed that if I go to Task Manager that I would sometimes have more than one instance of AlphaFive running under processes. Would you perhaps have any idea how to prevent this?<\/p>\n<p align=\"right\">&#8212; John, TM Software<\/p>\n<\/div>\n<p>Hi John. We have a couple of recommendations:<\/p>\n<h2 class=\"blog-caption\">1.&nbsp;&nbsp;Have AlwaysUp stop all other copies of Alpha<\/h2>\n<p>First, since you only want a single copy of Alpha Anywhere Application Server running at any time, you should check these boxes on the <b>Startup<\/b> tab:<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/alwaysup-startup-stop-all-copies.png\" class=\"zoomPopup\" title=\"AlwaysUp Startup tab - Stop all copies\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/alwaysup-startup-stop-all-copies.png\" title=\"AlwaysUp Startup tab - Stop all copies (click to enlarge)\" alt=\"AlwaysUp Startup tab - Stop all copies\" border=\"0\" ><\/a><\/div>\n<p>With those options enabled, AlwaysUp will perform the following steps whenever it determines that Alpha needs to be started:<\/p>\n<ol>\n<li>\n<p>Scan the system&#8217;s processes for all instances of <b>A5ApplicationServer.exe<\/b>, the Alpha Anywhere Application Server executable.<\/p>\n<\/li>\n<li>\n<p>\nIf any matching processes are found:<\/p>\n<ol type=\"a\">\n<li>\n<p>Attempt to stop each one gracefully<\/p>\n<\/li>\n<li>\n<p>Wait a few seconds for them all to exit<\/p>\n<\/li>\n<li>\n<p>Forcibly terminate any that remain<\/p>\n<\/li>\n<\/ol>\n<\/li>\n<li>\n<p>Launch Alpha server, as configured.<\/p>\n<\/li>\n<\/ol>\n<p>This process guarantees that the instance of Alpha Anywhere launched by AlwaysUp will be the only one running &mdash; ensuring that your web server gets all the ports (and other resources) it needs at startup.<\/p>\n<p>But while this approach effectively &#8220;clears the stage&#8221; for AlwaysUp, it will not prevent a second instance of Alpha from starting <i>after<\/i> the AlwaysUp-controlled instance is running. You may still see multiple copies of Alpha in Task Manager.<\/p>\n<p>This brings us to our second recommendation&#8230;<\/p>\n<h2 class=\"blog-caption\">2.&nbsp;&nbsp;Don&#8217;t start Alpha automatically outside of AlwaysUp<\/h2>\n<p>Is Alpha Anywhere Server being started outside of AlwaysUp? In particular:<\/p>\n<ul>\n<li>\n<p>Do you have a shortcut to the Alpha executable (A5ApplicationServer.exe) in your <a href=\"https:\/\/www.techopedia.com\/definition\/9537\/startup-folder\" target=\"_blank\" rel=\"noopener noreferrer\">Startup folder<\/a>?<\/p>\n<\/li>\n<li>\n<p>Is there a <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/desktop\/taskschd\/task-scheduler-start-page\" target=\"_blank\" rel=\"noopener noreferrer\">scheduled task<\/a> configured to launch Alpha?<\/p>\n<\/li>\n<li>\n<p>Or is there an <a href=\"https:\/\/documentation.alphasoftware.com\/pages\/Guides\/Application%20Server\/Run%20Alpha%20Anywhere%20as%20a%20Service.xml\" target=\"_blank\" rel=\"noopener noreferrer\">old installation with Srvany<\/a> still present on your system?<\/p>\n<\/li>\n<\/ul>\n<p>Since you have AlwaysUp managing Alpha server as a Windows Service, no other &#8220;automatic launch&#8221; solution is necessary. Indeed, having multiple methods in use will only cause confusion!<\/p>\n<p><b>Please disable all &#8220;automatic launch&#8221; solutions other than AlwaysUp.<\/b><\/p>\n<p>But it can be difficult to find all the places where Alpha is being launched automatically. We recommend using Microsoft&#8217;s free <a href=\"https:\/\/docs.microsoft.com\/en-us\/sysinternals\/downloads\/autoruns\" target=\"_blank\" rel=\"noopener noreferrer\">Autoruns tool<\/a> to help you identify (and disable) each location.<\/p>\n<p style=\"margin-top:30px;\">\nBest of luck with your website &amp; business!<\/p>\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\/dropbox-smart-sync-problem\/\"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 can&#039;t I open my Dropbox files even though Smart Sync is off?\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/dropbox-documents-150x150-1.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 can&#039;t I open my Dropbox files even though Smart Sync is off?<\/h2><\/div><\/div><\/a><a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/backup-and-sync-cpu-memory\/\"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 is AlwaysUp Reporting the Wrong CPU and Memory for Backup and Sync?\"  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 is AlwaysUp Reporting the Wrong CPU and Memory for Backup and Sync?<\/h2><\/div><\/div><\/a><a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/netman-service-warning\/\"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 can&#039;t AlwaysUp Open the Netman Service?\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/network-service-150x150-1.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 can&#039;t AlwaysUp Open the Netman Service?<\/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 using AlwaysUp to control my Alpha Anywhere Application Server. I have noticed that if I go to Task Manager that I would sometimes have more than one instance of AlphaFive running under processes. Would you perhaps have any &hellip; <a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/multiple-alpha-servers\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":3560,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[25,26,127,159],"class_list":["post-5252","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-alwaysup","tag-alpha-anywhere","tag-alwaysup-tag","tag-qa","tag-stop-copies"],"_links":{"self":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/5252","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=5252"}],"version-history":[{"count":0,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/5252\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/media\/3560"}],"wp:attachment":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=5252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=5252"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=5252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}