3 Replies Latest reply on Jul 27, 2005 4:57 AM by Ben Livshits

    Low-level tracing

    Ben Livshits Newbie

      I am trying to get some low-level tracing information about WebApps using JBoss AOP. After struggling with JBoss AOP for a while, it strikes me that I am barking up the wrong tree.

      What I want is a simple trace that would dump info at every method call, including those to system methods. I've been trying to use caller pointcuts that work okay when there not too many joint points, but fails where there are a lot.

      Is there some sort of a low-level trace facility that can be enabled withing the application server. I looked at the jboss-profiler project and it's probably doing something pretty low-level to do tracing.

        • 1. Re: Low-level tracing
          Clebert Suconic Master

          I have an implementation for that in JBossProfiler. I know it works but you have to provide all the pointcuts.

          You could also use JBossProfiler JVMPI implementation (native code).

          AOP version also produces the same log.

          If you have time to tinker arround with my code, at least you would have a tool to analyze the data.


          • 2. Re: Low-level tracing
            Ben Livshits Newbie

            Please do point me to the relevant code. I am also very curious to see what kind of interceptors you used. If they work just the same, I'd probably prefer to use them. I looked through the files included in the RC1 distribution, but couldn't find any jboss-aop XML pointcut descriptors.

            Or if you already dump the information I need in the log produced from the profiler, I could definitely use that. Thanks.

            • 3. Re: Low-level tracing
              Ben Livshits Newbie

              Let me add the following: suppose I am only interested in collecting all the classes used at runtime for a given Web app. Is there a way to do that?

              AOP seemed like the way to go, but I am sure there are other mechanisms like playing classloader games, etc.