11 Replies Latest reply on Sep 3, 2008 2:54 AM by francis17101970

    StatisticsCollector

    mcorey

      I'm interested in using the Statistics Collector described at http://www.jboss.org/wiki/Wiki.jsp?page=StatisticsCollector, but I can't find the statscollector.jar file indicated in that Wiki entry... is it included in the JBoss distribution at all? Do I have to build it from CVS?

      Thanks,
      M

        • 1. Re: StatisticsCollector
          luc.texier

          Get the source code. Compile it.
          The lib is located under /varia/output/lib

          • 2. Re: StatisticsCollector
            mcorey

            Excellent -- found it! Thank you...

            M

            • 3. Re: StatisticsCollector
              mlange

              Last time I tried it, the collector did not show any sql stats. Would be great if you could provide an information whether this part is working for you. Thanks.

              • 4. Re: StatisticsCollector
                steve.devore

                I seem to be having the same problem.. I configure the StatisticsCollector, but the reports all show no activity.

                • 5. Re: StatisticsCollector
                  somefoo

                  Hello!
                  Also coming from the wiki ... and also monitoring method statistics per transaction does not work for me. There are no exceptions or other observable failure s - the transaction-list simply is empty.

                  Does (should) all these work with EJB3?

                  Is anyone out there? - since this trace is unhandled since November last year?

                  Thank's?

                  • 6. Re: StatisticsCollector
                    somefoo

                    Hiho!
                    Obviously there is no one out there - so I keep talking to myself. Sorry for my rude englisch in advance!

                    I analyzed the sources of statscollector and it seems thas EJB3 can not be handled by TxStatisticsInterceptor.java. But it's quite easy to enable EJB3-support: I just intruduced a new EJB3-typical EJB3Interceptor instead of TxStatisticsInterceptor - the rest of the code is working further on.

                    The DataSource interceptor service still does not work for me because of the 'java:/DSInterceptor' seems just to be a JNDI-ressource which probably could be invoked by EJB2-descriptors but I need a 'tx-datasource' for the EJB2-persistence-unit - anyone any idea how to manage that?

                    Further on I tried to adopt the sources for my needs - which was/is really wicked: There are no source-code-comments at all and I can't see any possibility to extend the current object-structure to bring them to do just a penny more than it does now.

                    Bye!
                    somefoo


                    • 7. Re: StatisticsCollector
                      somefoo

                       

                      "somefoo" wrote:

                      ... but I need a 'tx-datasource' for the EJB*2*-persistence-unit - anyone any idea how to manage that?


                      Hello!
                      The above is (of course) a typo: I would need a EJB*3*-persistence-unit - there is no such thing as a Persistence-unit in EJB2, is it?

                      Just further on for the non-listening and non-answering jboss-people ;-)
                      My monitoring tool is in a final state now - I'am just interested in transaction-data, which works quite well with the given structure - asaide from the mentioned ('sub-optimal' OO-design) which made all changes und extensions a little bit tricky - .

                      bye!


                      • 8. Re: StatisticsCollector
                        pilhuhn

                        For the EJB3 PU, you can (if you use JBoss EJB3) enable Hibernate statistics and use stats from there.
                        Else, the underlying datasource is the same for EJB2 and EJB3.
                        So have a look at the respecive ConnectionPool-MBeans etc.

                        • 9. Re: StatisticsCollector
                          cezary_u

                          I was trying to build Stats Collector, but kept getting lots of errors and warnings...

                          Could anyone be so kind and provide me already built .jar file? Or at least explain me what versions of jdk/ant/whatever else meaningful to the build process should i have...

                          Already tried to build it with jdk 1.4,1.5,1.6 with the corresponding Ant version... whole JBoss project builds successfully except of Stats Collector :/

                          please help me with that,
                          thanks in advance

                          • 10. Re: StatisticsCollector
                            cezary_u

                            ok, nvm the one above... i finally managed to build this joy ;]

                            now i have problems with deploying collector...keep throwing that TransactionManager is not bound...

                            Anyone can help with that issue?

                            • 11. Re: StatisticsCollector

                              Which release of JBoss are you using ?
                              The only time I've met this Exception was when embedding ejb3 on another Web Container (And it turned out I was missing some stuff from jboss-embedded-beans.xml)
                              Francesco