Skip to main content
November 22, 2010
Answered

application instance will be unload automatically?

  • November 22, 2010
  • 1 reply
  • 1808 views

Hi,

I have an application on FMS. When a user connect to FMS it will create an application instance. My question is that if all users that connect to it disconnect the instance will be unload automatically?

    This topic has been closed for replies.
    Correct answer SE_0208

    Hi,

    I just need to know if an application will be unload automatically if there are no clients connecting to it.


    Yes - if all clients have disconnected from the application instance and 600 seconds have elapsed where it has been idle - that application instance would be gc'ed leading to application getting unloaded. This is configurable value - check MaxAppIdleTime in application.xml or ApplicationGC in Server.xml

    1 reply

    Participating Frequently
    November 22, 2010

    May be you have code inside your application i.e. application.onDisconnect() defined and this handler might be having application.shutdown() - which unloads your application - check your server-side logic.

    November 22, 2010

    Hi, SE_0208

    Thanks for replying. Yes, i define application.onDisconnect() but there is no code application.shutdown() in that hanlder. Do you mean the application instance will not be unload automatically if don't call application.shutdown()?

    Participating Frequently
    November 22, 2010

    Just to be clear, are you saying you want your application to be unloaded or are you saying your application is getting unloaded and you want to know reason behind it?