Re: Moose-dev Digest, Vol 64, Issue 56

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Moose-dev Digest, Vol 64, Issue 56

Sergio Castro


On 19/12/11 13:09, [hidden email] wrote:

>
> ----------------------------------------------------------------------
>
>
> Message: 2
> Date: Mon, 19 Dec 2011 05:07:39 +0100
> From: Tudor Girba<[hidden email]>
> Subject: [Moose-dev] java (jboss) dynamic instrumentation?
> To: Moose-dev Moose Dev<[hidden email]>
> Message-ID:<[hidden email]>
> 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
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Moose-dev Digest, Vol 64, Issue 56

abergel
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, [hidden email] wrote:
>>
>> ----------------------------------------------------------------------
>>
>>
>> Message: 2
>> Date: Mon, 19 Dec 2011 05:07:39 +0100
>> From: Tudor Girba<[hidden email]>
>> Subject: [Moose-dev] java (jboss) dynamic instrumentation?
>> To: Moose-dev Moose Dev<[hidden email]>
>> Message-ID:<[hidden email]>
>> 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
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.





_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Moose-dev Digest, Vol 64, Issue 56

Tudor Girba-2
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
<[hidden email]> 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, [hidden email] wrote:
>>>
>>> ----------------------------------------------------------------------
>>>
>>>
>>> Message: 2
>>> Date: Mon, 19 Dec 2011 05:07:39 +0100
>>> From: Tudor Girba<[hidden email]>
>>> Subject: [Moose-dev] java (jboss) dynamic instrumentation?
>>> To: Moose-dev Moose Dev<[hidden email]>
>>> Message-ID:<[hidden email]>
>>> 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
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev



--
www.tudorgirba.com

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Moose-dev Digest, Vol 64, Issue 56

abergel
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
> <[hidden email]> 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, [hidden email] wrote:
>>>>
>>>> ----------------------------------------------------------------------
>>>>
>>>>
>>>> Message: 2
>>>> Date: Mon, 19 Dec 2011 05:07:39 +0100
>>>> From: Tudor Girba<[hidden email]>
>>>> Subject: [Moose-dev] java (jboss) dynamic instrumentation?
>>>> To: Moose-dev Moose Dev<[hidden email]>
>>>> Message-ID:<[hidden email]>
>>>> 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
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel  http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
>
> --
> www.tudorgirba.com
>
> "Every thing has its own flow"
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.





_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Moose-dev Digest, Vol 64, Issue 56

jfabry
In reply to this post by Tudor Girba-2

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
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev