Skip to main content
Participant
July 1, 2008
Question

FMS Staring my App Twice??!

  • July 1, 2008
  • 3 replies
  • 472 views

I have a single instance of an application where I see the following the logs twice:

2008-07-01 10:54:24 15895 (s)2641173 Scalability Test Node Running: 10.50.1.71 -
...
2008-07-01 10:54:25 16135 (s)2641173 Scalability Test Node Running: 10.50.1.71 -

Between those two logs messages there isn't any shutdown messages. I have an Application.xml that specifies to load this application on startup.

If I startup my server I have only one instance running by looking at it through the admin console. However, once another FMS server connects to this server another instance spins up. And now I have two instances running. Why is that happenning? How can I get it to only startup one? If I connect another server would it spin up another instance? Can I enforce only one instance?

Thanks
Charlie
    This topic is closed to new replies. Start a new post to keep the conversation going.

    3 replies

    Participating Frequently
    July 9, 2008
    The following configuration changes on the server can launch two separate FMSCore processes for connecting to the same instance, in which case, the application.log will have onAppStart invoked for every new connection .

    <Application>
    <Scope>inst</Scope>
    <Distribute numprocs="3">clients</Distribute>

    <LifeTime>
    <RollOver>30</RollOver>
    <MaxCores>5</MaxCores>
    </LifeTime>

    </Application>
    Participating Frequently
    July 2, 2008
    Where did you get this log entries from? When you say you see two instances, do you mean to say two instances of same application with same name?

    If I do the same, i.e.,
    1. Start a FMS with one application (say test1) starting onload.
    2. In admin console I see one instance of the application
    3. Start another FMS server which connects to FMS server 1 test application at startup.
    4. Notice the admin console of first FMS. It indecates 2 connection against the instance of test application.

    In which logs did you get these entries? Can you elaborate, please?
    Participant
    July 2, 2008
    I have two FMS servers running applications that connect to each other. If I only start up one of those servers the log files shows application.onAppStart ran one time which is what I expect. However, once I bring up the second server it connects to the first and now I see the second call to application.OnAppStart in the first server's log file. I already started that application why is it starting again? What does that mean for all the memory the first time onAppStart ran?

    I found these entries in the following logs:

    /opt/adobe/fms/logs/_defaultVHost_/ScalabilityTest/_definst_/application.00.log

    So it's a single instance of my application (_definst_). However, I see two log entries saying that application.onStartApp ran twice. So from a Javascript perspective it's like there are two instances of application running which seems to agree with the logs because the x-pid of each of those log entires is different. In the previous post the pids were 15895 and 16135. So maybe I should say why are two processes being started for a single instance of my application? Is there a way I can indicate to FMS that I only want a single process per instance?

    Charlie