5 Replies Latest reply on May 14, 2004 11:49 AM by richieb

    Thread naming

    richieb

      Would it make sense to include the IP address in threads that connect to clients on other machines. For example the UIL2 WriterTask and ReaderTask.

      This would make debugging of problems a lot easier in case of stuck/problematic clients.

      ...richie

        • 1. Re: Thread naming

          Yes. Please provide a patch against
          cvs co ... -r Branch_3_2 jboss-3.2

          To generate the patch use
          cvs diff -U 5 > patch.txt
          and post it at www.sf.net/projects/jboss

          If you have some other good ideas I can get you CVS R/W so you can
          apply them yourself.

          Regards,
          Adrian

          • 2. Re: Thread naming
            richieb

            Done. See patch number: 930783

            Here is what the thread dump will look like:

            Thread: UILServerILService Accept Thread : priority:5, demon:false
            Thread: UIL2.SocketManager.ReadTask#1 [127.0.0.1:32920] : priority:5, demon:true
            Thread: UIL2.SocketManager.WriteTask#2 [127.0.0.1:32920] : priority:5, demon:true
            Thread: Thread-42 : priority:5, demon:true
            Thread: Thread-43 : priority:5, demon:true
            Thread: Message Pushers-1 : priority:5, demon:true
            



            Two other changes I was interested in making were:

            1. Better display of current subscriptions on a topic (receivers for a queue)
            2. A button in the JMX console to kill a subscription.


            ...richie


            • 3. Re: Thread naming
              genman


              Overall looks very helpful.

              I wonder if it might make sense to have the different IL threads belong to different thread groups, as the number of threads may be quite a lot. The JMX operation to display these could then display and order them by group.

              • 4. Re: Thread naming

                richieb

                Your other ideas are good. See this thread
                http://www.jboss.org/index.html?module=bb&op=viewtopic&t=46285

                Are you waiting for me to say go?

                Regards,
                Adrian

                • 5. Re: Thread naming
                  richieb

                   

                  "adrian@jboss.org" wrote:
                  richieb

                  Your other ideas are good. See this thread
                  http://www.jboss.org/index.html?module=bb&op=viewtopic&t=46285

                  Are you waiting for me to say go?

                  Regards,
                  Adrian


                  Oh, I didn't see this reply.

                  I've been swamped with other work. I should be able to get back to this within a week or so.

                  ...richie