Welcome, Guest
  • Author Topic: apps don't unload  (Read 2126 times)

    db2010

    • Server what's that
    • *
    • Posts: 27
      • View Profile
    apps don't unload
    « on: 10/16/05, 18:49 »
    Hi,

    I have found that the sample applications (e.g. sample_videoconference) and applications that use the MM Communications Components do not unload from the Flash Server when they are closed, unless they are manually unloaded using the App Inspector (try it for your self).

    If I shut down the PC, or restart the Server then of course they do unload. but why are the applications not unloading? I was lead to believe that after a set amount of time idle apps unloaded themselves.

    Also does anyone know how to issue a command that unloads an application at runtime through AS (not just disconnecting a client). So a client could unload the server Application instance at the press of a button.

    Hopefully someone can shed some light on these issues. Or if you can get the applications to unload let me know how.

    Thanks in advance

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: apps don't unload
    « Reply #1 on: 10/17/05, 07:58 »
    You should connect to port 1111 with user and password (Admin from your server, or Vhost) and use reloadApp(intanceName), not a good idea
    By default unload occurs 20 minutes after the last user leaves, as showed in Vhost.xml:

    <!-- GC interval for application instances resources in minutes : SharedObjects, Streams and Script engine. -->
            <AppInstanceGC>20</AppInstanceGC>

    Change the value there. Or you can specify for the entire server, or just n app. Consult Administration server pdf.

    Jorge

    db2010

    • Server what's that
    • *
    • Posts: 27
      • View Profile
    Re: apps don't unload
    « Reply #2 on: 10/17/05, 15:44 »
     I mean LIVE users/instances because in the diagnostic I have  10 LIVE users  but I don't even have 1 flash window open? is there a way to unload the LIVE #?

    db2010

    • Server what's that
    • *
    • Posts: 27
      • View Profile
    Re: apps don't unload
    « Reply #3 on: 10/17/05, 15:45 »
    in actionscript or other?

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: apps don't unload
    « Reply #4 on: 10/17/05, 16:26 »
    Stats refresh every n seconds (10 or so, don't remember) You mean your stats say there are 10 users, but none is there?

    Jorge

    db2010

    • Server what's that
    • *
    • Posts: 27
      • View Profile
    Re: apps don't unload
    « Reply #5 on: 10/17/05, 16:29 »
    Yes..the only way it stops if I restart the server..so maybe I'm not "properly" closing the flash programs or something like that? Is there an exit; command or something similar to this?

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: apps don't unload
    « Reply #6 on: 10/18/05, 03:57 »
    When users logout, you should clean all resources on Client previous disconnection.
    If the user just close the window, the server pings every n seconds to clients, and when unavailable, dispose resources.
    On server side, application.onDisconnect is the place to free resources for server side after disconnection.

    Jorge