How many IDEs are accessing the hostserver at a given time?

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf How many IDEs are accessing the hostserver at a given time?

  • Creator
    Topic
  • #54652
    Russ Ross
    Participant

      I was wondering if anyone out there has devised a method to help answer the question, “How many IDEs are attached to my cloverleaf hostserver at a given time?”

      We increased the number of client IDEs and people running them.

      The other day I think the hostserver ran out of JAVA memory so I was curious just how many IDEs where attached, so I can get a feel as to where my limits are at various settings like these for the server.ini file:

      [general]

      jvm_args=-Xmx256m

      or

      [general]

      jvm_args=-Xmx512m

      Russ Ross
      RussRoss318@gmail.com

    Viewing 9 reply threads
    • Author
      Replies
      • #82418
        Keith McLeod
        Participant

          How about using netstat and the appropriate IDE port number?

          netstat -an | grep 13021

          or

          netstat -an | find “13021”

          Not sure if there is a programatic way to determine.  I would be interested though…

        • #82419
          Russ Ross
          Participant

            I thought I tried

            netstat -an |grep 13020

            # host server port is 13020 on cloverleaf 6.0 that we are running

            but now I’m seeing some correlation that this approach might get me in the approximate ball park which is probably good enough.

            There are extra hits that don’t represent IDEs and looks like the number of hits goes up with each app (ex: NetMonitor, Netconfig) launched in each IDE.

            Still probably gives me a clue as to how hard we are hitting the hostserver.

            Russ Ross
            RussRoss318@gmail.com

          • #82420
            Russ Ross
            Participant

              I’m seeing some confusing observations but might be useful enough to determine approximate demands being placed on the cloverleaf hostserver.

              Russ Ross
              RussRoss318@gmail.com

            • #82421
              Russ Ross
              Participant

                Now my IDE access to the hostserver seems to be no longer displayed via netstat but yet I’m still using that IDE.

                There might be other unknown factors in play and probably why the netsat I tried ealier caused me to doubt its usefullness because it isn’t producing accurate info now about my launched IDEs.

                Russ Ross
                RussRoss318@gmail.com

              • #82422
                Bob Richardson
                Participant

                  Greetings Ross,

                  You might want to enable debug mode for your hostserver.

                  Sometimes the drag on the hostserver is due to problems in the IDE like

                  Xlate editing errors (bad structure) and it hangs while waiting for the IDE to just end itself or get killed by the end user.

                  Here is what we have documented on how to do that:

                  To turn on the debug information of host server, make sure the following are in the server.ini

                               [logging]

                               cloverleaf_server_category=DEBUG

                               cloverleaf_server_level=VERBOSE

                               host_server_category=DEBUG

                               host_server_level=VERBOSE

                               ticket_server_category=info

                               ticket_server_level=brief

                               log_rmi_calls=true

                               debug_ssl=false

                  Be sure to back up your server.ini first to restore.

                  Also: our jvm args is set high:

                  jvm_args=-Xmx1024m

                  Hope this helps.

                  Good luck, good hunting!

                • #82423
                  Michael Hertel
                  Participant

                    AIX –

                    I was able to get a count with:

                    lsof | grep java | grep TCP

                  • #82424
                    Russ Ross
                    Participant

                      doing

                      lsof | grep java | grep TCP | wc -l

                      gave me 954 hits, so I restricted it to this

                      lsof | grep java | grep TCP |grep ESTABLISHED | wc -l

                      which gave me a more reasonable count of

                      46 in PROD and 52 in TEST, which is around something that I might expect.

                      I think this shows some promise, thanks.

                      Russ Ross
                      RussRoss318@gmail.com

                    • #82425
                      Russ Ross
                      Participant

                        I did notice that

                        lsof | grep java | grep TCP

                        that gives me 954 hits in PROD all of which have the same pid as the host server so they are definetely tied together, but surprised to see that many and wonder about the extras that aren’t showing as established.

                        doing

                        lsof -p pid_of_hostserver

                        gives simialr results with 1094 hits in PROD

                        I will continue to observe them moving forward whenever I cycle the hostserver.

                        I will be doing a HA fail-over this weekend, so I get a chance to see what the counts looks like after the hostserver has been cycled and before any IDEs are launched.

                        Russ Ross
                        RussRoss318@gmail.com

                      • #82426
                        Russ Ross
                        Participant

                          I’m starting to wonder if the hostserver never clears the IDE access unless you do log off & exit for the IDE.

                          Perhaps just closing the IDE via clicking on X might be leaving hostserver ports allocated.

                          Now that we see this, I’m going to discuss a regualar recycle of the hsotserver.

                          Since we are expected to do a quarterly fail-over this potentially wastefull allocation when not released upon closing an IDE wasn’t coming to our attention.

                          Still a good bit of conjecture but starting to come into focus.

                          Might also explain why the IDE almost alwasy says a site is locked when it never is.

                          Russ Ross
                          RussRoss318@gmail.com

                        • #82427
                          Michael Hertel
                          Participant

                            I totally agree  with you and your findings.

                            There are only two of us here but I have made sure we File/Exit instead of clicking X for the reasons you mentioned. Especially the “locked” when it is not.

                            I was able to identify the workstations logged in with the lsof command. I only had valid sessions appear.

                            You’re probably right about the Xing out. It leaves the session behind.

                        Viewing 9 reply threads
                        • The forum ‘Cloverleaf’ is closed to new topics and replies.