Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

AlwaysUp and multiple instances

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    AlwaysUp and multiple instances

    Maybe I don't know the settings to use, but I have a problem with AlwaysUp. If I stop an instance of the Alpha Web Server and then restart it using AlwaysUp, it starts an additional instance of the server.

    I typically run two instances of the web server, but it is common for me to check Task Manager and see three or four or more instances running. Once that happens, I have to reboot the server to clear them or remove them from AlwaysUp, end them through task manager, re-install and restart.

    Are there "best practice" settings for AlwaysUp that will fix that?

    As I'm writing, I'm thinking that if there is a "A5_Server_terminate" or some such command, maybe I can have AlwaysUp use that to stop the server....I'll go check and get back to this thread...

    Pat
    Pat Bremkamp
    MindKicks Consulting

    #2
    Re: AlwaysUp and multiple instances

    Well, there are "server_stop", "server_restart" and such, but the help says they are desktop only.

    The server right click menu has an "Exit" entry that kills the server. Perhaps we can get the code behind that.

    Pat
    Pat Bremkamp
    MindKicks Consulting

    Comment


      #3
      Re: AlwaysUp and multiple instances

      Originally posted by Pat Bremkamp View Post
      The server right click menu has an "Exit" entry that kills the server. Perhaps we can get the code behind that.
      It's just
      Code:
      A5.Close()
      But that can't be run from an A5W page either.

      Lenny Forziati
      Vice President, Internet Products and Technical Services
      Alpha Software Corporation

      Comment


        #4
        Re: AlwaysUp and multiple instances

        If I stop an instance of the Alpha Web Server and then restart it using AlwaysUp, it starts an additional instance of the server.
        What do you mean? If you use AU to stop, restart you get TWO instances running? How are you stopping the server? If I stope the server while AU is managing it, it just restarts the server, not multiple instances. I also have two instances of the V9 server managed by AU. It always just starts those two instances.
        Steve Wood
        See my profile on IADN

        Comment


          #5
          Re: AlwaysUp and multiple instances

          Steve,

          Yes, that's exactly what I mean. I got a call about the website being down, so I stopped and restarted AlwaysUp and voila...the two previous copies continued to run and two more instances started.

          I tried to put in the A5.close() command, but I need a command line version to use it, so I couldn't. After trying, I chose "save and restart" and voila... 5 instances.

          So, now I'm rebooting the VPS.

          Pat
          Pat Bremkamp
          MindKicks Consulting

          Comment


            #6
            Re: AlwaysUp and multiple instances

            Maybe the difference between our installations is that I use the "console" or "admin" paramater to connect via remote desktop. That makes it as if I am sitting in front of the computer. Any other method is like I am an 'account' and each time I log in I might be a different account. Each account MIGHT run a different instance than the other.

            The shortcut for my remote desktop looks like this:

            %windir%\system32\mstsc.exe /admin
            Steve Wood
            See my profile on IADN

            Comment


              #7
              Re: AlwaysUp and multiple instances

              Thanks Steve, I'll try that.
              Pat Bremkamp
              MindKicks Consulting

              Comment


                #8
                Re: AlwaysUp and multiple instances

                Pat,

                For the first time that I ever noticed, I ad 2 instance of the server running as well. When I tried to end one of them, always up restarted it. I rebooted the computer and all seems ok now.

                By the way, why do you intentionally run 2 instances of the server?
                Gary S. Traub, Ph.D.

                Comment


                  #9
                  Re: AlwaysUp and multiple instances

                  Gary,

                  I run two instances for applications that take on-line payments. The bulk of the app runs on one instance through port 80, and the other instance runs SSL through port 443. I set up each one as a separate project / separate profile and each one has its own security, but they share the same tables.

                  Pat
                  Pat Bremkamp
                  MindKicks Consulting

                  Comment


                    #10
                    Re: AlwaysUp and multiple instances

                    Interesting.

                    Does that improve performance?

                    And, does it require another WAS license?
                    Gary S. Traub, Ph.D.

                    Comment


                      #11
                      Re: AlwaysUp and multiple instances

                      I did this originally in V8, and at that time there were clear advantages. In V9, SSL has been very stable, so there is less advantage, and I havn't any data on this approach in V10 (yet).

                      This works well for me because I don't need to put the whole site under SSL. These apps have a fair bit of public pages, so I run them standard, and there are only about 1/2 dozen pages that require the SSL.

                      Since I set up the SSL in a sub-domain, it doesn't require a second license.

                      Pat
                      Pat Bremkamp
                      MindKicks Consulting

                      Comment


                        #12
                        Re: AlwaysUp and multiple instances

                        Thanks for the explanation Pat.

                        So based on you trying to avoid use of SSL where you can avoid it, am I correct in assuming that SSL causes performance (or other) issues with the WAS?
                        Gary S. Traub, Ph.D.

                        Comment


                          #13
                          Re: AlwaysUp and multiple instances

                          Way back in Versions 7 & 8, it seemed that whenever I had a WAS problem or whenever the server locked up, it was in SSL. In fact, whenever there was going to be a lot of intense activity on the server (like the day of the event) I would reboot just before it started. In V9, that has been unnecessary, so Alpha has clearly made some improvements to SSL processing (and maybe I've gotten better at coding).

                          SSL adds a bit to the processing load, so in V7 & V8 I split out the SSL because of response issues...I was trying to squeeze all the performance I could out of the WAS. V9 was much faster, and V10 is so fast, that if I was starting today, I don't know if it would be worth it to keep things separate.

                          Now days, if I want to improve performance, I switch back ends to MySQL.


                          Pat
                          Pat Bremkamp
                          MindKicks Consulting

                          Comment


                            #14
                            Re: AlwaysUp and multiple instances

                            Pat,

                            Thanks so much for the detailed explanation!

                            I actually set up SSL some months ago with my v9 application. Users were randomly getting logged off. I didn't know if it was a problem with alpha's SSL processing or something in my code in interaction with SSL that caused it. But I chose to disable it back then because users needed access to the application.

                            I am now getting ready to implement SSL again. Based on your comments, I think (hope) it will go a bit smoother.
                            Gary S. Traub, Ph.D.

                            Comment

                            Working...
                            X