3 Replies Latest reply on Mar 9, 2011 11:50 AM by Manik Surtani

    CPU usage by  threads started by infinispan?

    Amal Raj Vinoth James Newbie

      Dear all,

       

       

      CPU usage by  threads started by infinispan ?

       

      how to find out what are the threads currently running in ISPN?

      i'm using following code.

      it's looks like, the threads that are shown below are only from JGROUPS.

      is it correct? if anyother way.pl let me know.

       

      is it possible to reduce the no of threads?

       

                Thread.getAllStackTraces()

       

      it gives following output in 2 node cluster having 2 caches instances one for repl, and another for invalidation.

       

      node 1 (started first):

       

      View Changed...

               Current Members : [savcomp8-2338]

       

       

              Cache Started : ___defaultcache //relication by default

      1   -  Thread[Finalizer,8,system]

      2   -  Thread[ConnectionMap.Acceptor,null,null,5,ConnectionMap]

      3   -  Thread[TransferQueueBundler,Infinispan-Cluster,savcomp8-2338,5,JGroups]

      4   -  Thread[Timer-2,Infinispan-Cluster,savcomp8-2338,5,JGroups]

      5   -  Thread[main,5,main]

      6   -  Thread[Signal Dispatcher,9,system]

      7   -  Thread[Timer-5,Infinispan-Cluster,savcomp8-2338,5,JGroups]

      8   -  Thread[Reference Handler,10,system]

      9   -  Thread[Timer-3,Infinispan-Cluster,savcomp8-2338,5,JGroups]

      10  -  Thread[FD_SOCK server socket acceptor,Infinispan-Cluster,savcomp8-2338,5,JGroups]

      11  -  Thread[Timer-4,Infinispan-Cluster,savcomp8-2338,5,JGroups]

      12  -  Thread[Attach Listener,5,system]

      13  -  Thread[Timer runner-1,Infinispan-Cluster,savcomp8-2338,5,JGroups]

       

              No of current Alive Threads : 13

       

              Cache Started : invalidationCache // invalidation mode

      1   -  Thread[Finalizer,8,system]

      2   -  Thread[ConnectionMap.Acceptor,null,null,5,ConnectionMap]

      3   -  Thread[TransferQueueBundler,Infinispan-Cluster,savcomp8-2338,5,JGroups]

      4   -  Thread[Timer-2,Infinispan-Cluster,savcomp8-2338,5,JGroups]

      5   -  Thread[main,5,main]

      6   -  Thread[Signal Dispatcher,9,system]

      7   -  Thread[Timer-5,Infinispan-Cluster,savcomp8-2338,5,JGroups]

      8   -  Thread[Reference Handler,10,system]

      9   -  Thread[Timer-3,Infinispan-Cluster,savcomp8-2338,5,JGroups]

      10  -  Thread[FD_SOCK server socket acceptor,Infinispan-Cluster,savcomp8-2338,5,JGroups]

      11  -  Thread[Timer-4,Infinispan-Cluster,savcomp8-2338,5,JGroups]

      12  -  Thread[Attach Listener,5,system]

      13  -  Thread[Timer runner-1,Infinispan-Cluster,savcomp8-2338,5,JGroups]

       

              No of current Alive Threads : 13

       

      Node 2(started second) :

      View Changed...

               Current Members : [savcomp8-2338, SAV4-11212]

       

       

              Cache Started : ___defaultcache  //relication by default

      1   -  Thread[FD_SOCK pinger,Infinispan-Cluster,SAV4-11212,5,JGroups]

      2   -  Thread[Connection.Receiver [10.1.42.24:2295 - 10.1.42.29:7810],Infinispan

      -Cluster,SAV4-11212,5,JGroups]

      3   -  Thread[ConnectionMap.Acceptor,null,null,5,ConnectionMap]

      4   -  Thread[main,5,main]

      5   -  Thread[Finalizer,8,system]

      6   -  Thread[Signal Dispatcher,9,system]

      7   -  Thread[Timer-4,Infinispan-Cluster,SAV4-11212,5,JGroups]

      8   -  Thread[Incoming-2,Infinispan-Cluster,SAV4-11212,5,Thread Pools]

      9   -  Thread[Reference Handler,10,system]

      10  -  Thread[OOB-1,Infinispan-Cluster,SAV4-11212,5,Thread Pools]

      11  -  Thread[OOB-2,Infinispan-Cluster,SAV4-11212,5,Thread Pools]

      12  -  Thread[Timer-5,Infinispan-Cluster,SAV4-11212,5,JGroups]

      13  -  Thread[Attach Listener,5,system]

      14  -  Thread[Incoming-1,Infinispan-Cluster,SAV4-11212,5,Thread Pools]

      15  -  Thread[FD_SOCK client connection handler,Infinispan-Cluster,SAV4-11212,5,

      JGroups]

      16  -  Thread[Timer-3,Infinispan-Cluster,SAV4-11212,5,JGroups]

      17  -  Thread[Timer runner-1,Infinispan-Cluster,SAV4-11212,5,JGroups]

      18  -  Thread[Timer-2,Infinispan-Cluster,SAV4-11212,5,JGroups]

      19  -  Thread[TransferQueueBundler,Infinispan-Cluster,SAV4-11212,5,JGroups]

      20  -  Thread[Connection.Sender [10.1.42.24:2295 - 10.1.42.29:7810],Infinispan-C

      luster,SAV4-11212,5,JGroups]

      21  -  Thread[FD_SOCK server socket acceptor,Infinispan-Cluster,SAV4-11212,5,JGr

      oups]

       

              No of current Alive Threads : 21

       

       

              Cache Started : invalidationCache   // invalidation mode

      1   -  Thread[FD_SOCK pinger,Infinispan-Cluster,SAV4-11212,5,JGroups]

      2   -  Thread[Connection.Receiver [10.1.42.24:2295 - 10.1.42.29:7810],Infinispan

      -Cluster,SAV4-11212,5,JGroups]

      3   -  Thread[ConnectionMap.Acceptor,null,null,5,ConnectionMap]

      4   -  Thread[main,5,main]

      5   -  Thread[Finalizer,8,system]

      6   -  Thread[Signal Dispatcher,9,system]

      7   -  Thread[Timer-4,Infinispan-Cluster,SAV4-11212,5,JGroups]

      8   -  Thread[Incoming-2,Infinispan-Cluster,SAV4-11212,5,Thread Pools]

      9   -  Thread[Reference Handler,10,system]

      10  -  Thread[OOB-1,Infinispan-Cluster,SAV4-11212,5,Thread Pools]

      11  -  Thread[OOB-2,Infinispan-Cluster,SAV4-11212,5,Thread Pools]

      12  -  Thread[Timer-5,Infinispan-Cluster,SAV4-11212,5,JGroups]

      13  -  Thread[Attach Listener,5,system]

      14  -  Thread[Incoming-1,Infinispan-Cluster,SAV4-11212,5,Thread Pools]

      15  -  Thread[FD_SOCK client connection handler,Infinispan-Cluster,SAV4-11212,5,

      JGroups]

      16  -  Thread[Timer-3,Infinispan-Cluster,SAV4-11212,5,JGroups]

      17  -  Thread[Timer runner-1,Infinispan-Cluster,SAV4-11212,5,JGroups]

      18  -  Thread[Timer-2,Infinispan-Cluster,SAV4-11212,5,JGroups]

      19  -  Thread[TransferQueueBundler,Infinispan-Cluster,SAV4-11212,5,JGroups]

      20  -  Thread[Connection.Sender [10.1.42.24:2295 - 10.1.42.29:7810],Infinispan-C

      luster,SAV4-11212,5,JGroups]

      21  -  Thread[FD_SOCK server socket acceptor,Infinispan-Cluster,SAV4-11212,5,JGr

      oups]

       

              No of current Alive Threads : 21


       

      thanks.

       

      regards,

      amal.