On 19/12/11 13:09, moose-dev-request@iam.unibe.ch wrote:
Message: 2 Date: Mon, 19 Dec 2011 05:07:39 +0100 From: Tudor Girbatudor@tudorgirba.com Subject: [Moose-dev] java (jboss) dynamic instrumentation? To: Moose-dev Moose Devmoose-dev@iam.unibe.ch Message-ID:56F679FD-8623-4A68-BD18-B7C3B3C3D340@tudorgirba.com Content-Type: text/plain; charset=us-ascii
Hi,
Can anyone recommend an dynamic instrumentation tool for Java?
I am interested in a solution that would work also on the server side (in particular, inside a JBoss server).
I found some links, but I do not know how good they are: http://java-source.net/open-source/profilers
Cheers, Doru
-- www.tudorgirba.com
"Reasonable is what we are accustomed with."
As far as I know, Javassist is what you need. I have used it for byte code instrumentation and is relatively easy to learn and use, if I remember correctly JBoss provides support for it. Take a look to: http://www.jboss.org/javassist
Sergio
AspectJ also does a pretty good job. But all in all, it depends what you want to extract from the execution. Which kind of metric or data are you interested in ?
We are currently writing an agent for the JVM to extract low level data.
Cheers, Alexandre
On 19 Dec 2011, at 09:50, Sergio Castro wrote:
On 19/12/11 13:09, moose-dev-request@iam.unibe.ch wrote:
Message: 2 Date: Mon, 19 Dec 2011 05:07:39 +0100 From: Tudor Girbatudor@tudorgirba.com Subject: [Moose-dev] java (jboss) dynamic instrumentation? To: Moose-dev Moose Devmoose-dev@iam.unibe.ch Message-ID:56F679FD-8623-4A68-BD18-B7C3B3C3D340@tudorgirba.com Content-Type: text/plain; charset=us-ascii
Hi,
Can anyone recommend an dynamic instrumentation tool for Java?
I am interested in a solution that would work also on the server side (in particular, inside a JBoss server).
I found some links, but I do not know how good they are: http://java-source.net/open-source/profilers
Cheers, Doru
-- www.tudorgirba.com
"Reasonable is what we are accustomed with."
As far as I know, Javassist is what you need. I have used it for byte code instrumentation and is relatively easy to learn and use, if I remember correctly JBoss provides support for it. Take a look to: http://www.jboss.org/javassist
Sergio _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Hi,
I am interested in the exact traces including distinguishing between different clients and different threads.
Cheers, Doru
On Mon, Dec 19, 2011 at 3:00 PM, Alexandre Bergel alexandre.bergel@me.com wrote:
AspectJ also does a pretty good job. But all in all, it depends what you want to extract from the execution. Which kind of metric or data are you interested in ?
We are currently writing an agent for the JVM to extract low level data.
Cheers, Alexandre
On 19 Dec 2011, at 09:50, Sergio Castro wrote:
On 19/12/11 13:09, moose-dev-request@iam.unibe.ch wrote:
Message: 2 Date: Mon, 19 Dec 2011 05:07:39 +0100 From: Tudor Girbatudor@tudorgirba.com Subject: [Moose-dev] java (jboss) dynamic instrumentation? To: Moose-dev Moose Devmoose-dev@iam.unibe.ch Message-ID:56F679FD-8623-4A68-BD18-B7C3B3C3D340@tudorgirba.com Content-Type: text/plain; charset=us-ascii
Hi,
Can anyone recommend an dynamic instrumentation tool for Java?
I am interested in a solution that would work also on the server side (in particular, inside a JBoss server).
I found some links, but I do not know how good they are: http://java-source.net/open-source/profilers
Cheers, Doru
-- www.tudorgirba.com
"Reasonable is what we are accustomed with."
As far as I know, Javassist is what you need. I have used it for byte code instrumentation and is relatively easy to learn and use, if I remember correctly JBoss provides support for it. Take a look to: http://www.jboss.org/javassist
Sergio _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
AspectJ sounds like what you need, but I am not familiar in that area.
Alexandre
On 19 Dec 2011, at 12:17, Tudor Girba wrote:
Hi,
I am interested in the exact traces including distinguishing between different clients and different threads.
Cheers, Doru
On Mon, Dec 19, 2011 at 3:00 PM, Alexandre Bergel alexandre.bergel@me.com wrote:
AspectJ also does a pretty good job. But all in all, it depends what you want to extract from the execution. Which kind of metric or data are you interested in ?
We are currently writing an agent for the JVM to extract low level data.
Cheers, Alexandre
On 19 Dec 2011, at 09:50, Sergio Castro wrote:
On 19/12/11 13:09, moose-dev-request@iam.unibe.ch wrote:
Message: 2 Date: Mon, 19 Dec 2011 05:07:39 +0100 From: Tudor Girbatudor@tudorgirba.com Subject: [Moose-dev] java (jboss) dynamic instrumentation? To: Moose-dev Moose Devmoose-dev@iam.unibe.ch Message-ID:56F679FD-8623-4A68-BD18-B7C3B3C3D340@tudorgirba.com Content-Type: text/plain; charset=us-ascii
Hi,
Can anyone recommend an dynamic instrumentation tool for Java?
I am interested in a solution that would work also on the server side (in particular, inside a JBoss server).
I found some links, but I do not know how good they are: http://java-source.net/open-source/profilers
Cheers, Doru
-- www.tudorgirba.com
"Reasonable is what we are accustomed with."
As far as I know, Javassist is what you need. I have used it for byte code instrumentation and is relatively easy to learn and use, if I remember correctly JBoss provides support for it. Take a look to: http://www.jboss.org/javassist
Sergio _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Every thing has its own flow"
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
As Alex mentioned, one option would be to roll your own using AspectJ. If you just need a log to a file with all called methods, recieviers, arguments and the executing thread, this should be quite trivial. I guesstimate that 50 LOC should be an upper bound.
Tudor Girba wrote:
Hi,
I am interested in the exact traces including distinguishing between different clients and different threads.
Cheers, Doru