You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Jérôme BERNARD <je...@gmail.com> on 2011/03/28 22:05:38 UTC

Tapestry & Perf4J

Hi,

Quick email to let you know that if some of you are interested in using
Perf4J (http://perf4j.codehaus.org) with Tapestry, I've released a module
simplifying this a bit:
http://kalixia.github.com/tapestry-perf4j/


I hope this can be useful to some of you.

Regards,
Jerome.

Re: Tapestry & Perf4J

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Mon, 28 Mar 2011 18:13:38 -0300, Jérôme BERNARD  
<je...@gmail.com> wrote:

> Great!
> Let me know if you're in lack of some features.
> Most of the stuff is actually done by Perf4J.
> All I try to do is some plumbing in order to make it "natural" to use ;-)

But you've got this plumbing already done, so this is very nice too. :)  
Many Tapestry users will probably at least try it due to having a  
ready-to-use integration.

-- 
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Tapestry & Perf4J

Posted by Jérôme BERNARD <je...@gmail.com>.
On Mon, Mar 28, 2011 at 23:07, Kalle Korhonen <ka...@gmail.com>wrote:

> Brilliant! I have way too much benchmarking code in my applications as
> is. I have just a project lined up to try this on, thanks!
>

Great!
Let me know if you're in lack of some features.
Most of the stuff is actually done by Perf4J.
All I try to do is some plumbing in order to make it "natural" to use ;-)


Jerome.

Re: Tapestry & Perf4J

Posted by Kalle Korhonen <ka...@gmail.com>.
Brilliant! I have way too much benchmarking code in my applications as
is. I have just a project lined up to try this on, thanks!

Kalle


On Mon, Mar 28, 2011 at 1:05 PM, Jérôme BERNARD
<je...@gmail.com> wrote:
> Hi,
>
> Quick email to let you know that if some of you are interested in using
> Perf4J (http://perf4j.codehaus.org) with Tapestry, I've released a module
> simplifying this a bit:
> http://kalixia.github.com/tapestry-perf4j/
>
>
> I hope this can be useful to some of you.
>
> Regards,
> Jerome.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Tapestry & Perf4J

Posted by Patrick Moore <pa...@amplafi.com>.
Looks like you should get your work added here:
http://perf4j.codehaus.org/index.html under "Integrated Tools"

beat the wicket people to the punch ;-)

Patrick Moore
Amplafi
http://amplafi.com
mobile: 650-207-9792
"Put your front window on your front page"
personal blog : http://sworddance.com/blog


On Mon, Mar 28, 2011 at 3:10 PM, Jérôme BERNARD <je...@gmail.com>wrote:

> I've heard of it and used it in the past.
> Hopefully, it has changed to an Apache license which was not the case at
> the
> time I looked into it (it used to be LGPL).
>
> I can't find much information about the pro & cons of Perf4J vs rrd4j
> though
> :-(
>
> I just saw many OSS projects using it and it proved to be simple to use and
> understand.
>
> Jerome.
>
> On Mon, Mar 28, 2011 at 23:57, Howard Lewis Ship <hl...@gmail.com> wrote:
>
> > Have you looked at http://code.google.com/p/rrd4j/ as a way to
> > aggregate performance metrics over time?  I used this on a project a
> > couple of years ago and, outside some hassles involving dates and time
> > zones (we were attempting to aggregate information from multiple
> > servers) it worked quite nicely.  (This may be  more of a question for
> > Perf4J than for your integration).
> >
> > On Mon, Mar 28, 2011 at 2:07 PM, Jérôme BERNARD
> > <je...@gmail.com> wrote:
> > > On Mon, Mar 28, 2011 at 22:44, Thiago H. de Paula Figueiredo <
> > > thiagohp@gmail.com> wrote:
> > >
> > >> On Mon, 28 Mar 2011 17:05:38 -0300, Jérôme BERNARD <
> > >> jerome.bernard@gmail.com> wrote:
> > >>
> > >>  Hi,
> > >>>
> > >>
> > >> Hi!
> > >>
> > >>  Quick email to let you know that if some of you are interested in
> using
> > >>> Perf4J (http://perf4j.codehaus.org) with Tapestry, I've released a
> > module
> > >>> simplifying this a bit: http://kalixia.github.com/tapestry-perf4j/
> > >>>
> > >>
> > >> Bookmarked! This seems very interesting. :) Thanks for sharing!
> > >>
> > >
> > > You're welcome. I have some few ideas on how to enhance the components,
> > so I
> > > will most likely update it in a short time.
> > > I'd like at least to add auto-refresh (simple as I already use a zone
> for
> > > the graph).
> > > I'd like also to dynamically generate the appenders from Java code
> > instead
> > > of relying on log4j configuration files.
> > > This would give the ability to dynamically add/remove appenders hence
> > graphs
> > > ;-)
> > >
> > >
> > >> There has been many Tapestry and Tapestry-IoC based projects being
> > >> announced lately. This shows how the framework and its community are
> > alive
> > >> and thriving. :)
> > >
> > >
> > > Definitely!
> > > And TIA book will also help a lot the community ;-)
> > >
> > >
> > > Jerome.
> > >
> >
> >
> >
> > --
> > Howard M. Lewis Ship
> >
> > Creator of Apache Tapestry
> >
> > The source for Tapestry training, mentoring and support. Contact me to
> > learn how I can get you up and productive in Tapestry fast!
> >
> > (971) 678-5210
> > http://howardlewisship.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
> --
> Jérôme Bernard
> Blog : http://www.jerome-bernard.com
>

Re: Tapestry & Perf4J

Posted by Jérôme BERNARD <je...@gmail.com>.
I've heard of it and used it in the past.
Hopefully, it has changed to an Apache license which was not the case at the
time I looked into it (it used to be LGPL).

I can't find much information about the pro & cons of Perf4J vs rrd4j though
:-(

I just saw many OSS projects using it and it proved to be simple to use and
understand.

Jerome.

On Mon, Mar 28, 2011 at 23:57, Howard Lewis Ship <hl...@gmail.com> wrote:

> Have you looked at http://code.google.com/p/rrd4j/ as a way to
> aggregate performance metrics over time?  I used this on a project a
> couple of years ago and, outside some hassles involving dates and time
> zones (we were attempting to aggregate information from multiple
> servers) it worked quite nicely.  (This may be  more of a question for
> Perf4J than for your integration).
>
> On Mon, Mar 28, 2011 at 2:07 PM, Jérôme BERNARD
> <je...@gmail.com> wrote:
> > On Mon, Mar 28, 2011 at 22:44, Thiago H. de Paula Figueiredo <
> > thiagohp@gmail.com> wrote:
> >
> >> On Mon, 28 Mar 2011 17:05:38 -0300, Jérôme BERNARD <
> >> jerome.bernard@gmail.com> wrote:
> >>
> >>  Hi,
> >>>
> >>
> >> Hi!
> >>
> >>  Quick email to let you know that if some of you are interested in using
> >>> Perf4J (http://perf4j.codehaus.org) with Tapestry, I've released a
> module
> >>> simplifying this a bit: http://kalixia.github.com/tapestry-perf4j/
> >>>
> >>
> >> Bookmarked! This seems very interesting. :) Thanks for sharing!
> >>
> >
> > You're welcome. I have some few ideas on how to enhance the components,
> so I
> > will most likely update it in a short time.
> > I'd like at least to add auto-refresh (simple as I already use a zone for
> > the graph).
> > I'd like also to dynamically generate the appenders from Java code
> instead
> > of relying on log4j configuration files.
> > This would give the ability to dynamically add/remove appenders hence
> graphs
> > ;-)
> >
> >
> >> There has been many Tapestry and Tapestry-IoC based projects being
> >> announced lately. This shows how the framework and its community are
> alive
> >> and thriving. :)
> >
> >
> > Definitely!
> > And TIA book will also help a lot the community ;-)
> >
> >
> > Jerome.
> >
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator of Apache Tapestry
>
> The source for Tapestry training, mentoring and support. Contact me to
> learn how I can get you up and productive in Tapestry fast!
>
> (971) 678-5210
> http://howardlewisship.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

--
Jérôme Bernard
Blog : http://www.jerome-bernard.com

Re: Tapestry & Perf4J

Posted by Howard Lewis Ship <hl...@gmail.com>.
Have you looked at http://code.google.com/p/rrd4j/ as a way to
aggregate performance metrics over time?  I used this on a project a
couple of years ago and, outside some hassles involving dates and time
zones (we were attempting to aggregate information from multiple
servers) it worked quite nicely.  (This may be  more of a question for
Perf4J than for your integration).

On Mon, Mar 28, 2011 at 2:07 PM, Jérôme BERNARD
<je...@gmail.com> wrote:
> On Mon, Mar 28, 2011 at 22:44, Thiago H. de Paula Figueiredo <
> thiagohp@gmail.com> wrote:
>
>> On Mon, 28 Mar 2011 17:05:38 -0300, Jérôme BERNARD <
>> jerome.bernard@gmail.com> wrote:
>>
>>  Hi,
>>>
>>
>> Hi!
>>
>>  Quick email to let you know that if some of you are interested in using
>>> Perf4J (http://perf4j.codehaus.org) with Tapestry, I've released a module
>>> simplifying this a bit: http://kalixia.github.com/tapestry-perf4j/
>>>
>>
>> Bookmarked! This seems very interesting. :) Thanks for sharing!
>>
>
> You're welcome. I have some few ideas on how to enhance the components, so I
> will most likely update it in a short time.
> I'd like at least to add auto-refresh (simple as I already use a zone for
> the graph).
> I'd like also to dynamically generate the appenders from Java code instead
> of relying on log4j configuration files.
> This would give the ability to dynamically add/remove appenders hence graphs
> ;-)
>
>
>> There has been many Tapestry and Tapestry-IoC based projects being
>> announced lately. This shows how the framework and its community are alive
>> and thriving. :)
>
>
> Definitely!
> And TIA book will also help a lot the community ;-)
>
>
> Jerome.
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Tapestry & Perf4J

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Mon, 28 Mar 2011 18:07:14 -0300, Jérôme BERNARD  
<je...@gmail.com> wrote:

> I'd like also to dynamically generate the appenders from Java code  
> instead of relying on log4j configuration files.
> This would give the ability to dynamically add/remove appenders hence  
> graphs ;-)

That would fit the Tapestry almost complete lack of configuration files  
very nicely.

-- 
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Tapestry & Perf4J

Posted by Jérôme BERNARD <je...@gmail.com>.
On Mon, Mar 28, 2011 at 22:44, Thiago H. de Paula Figueiredo <
thiagohp@gmail.com> wrote:

> On Mon, 28 Mar 2011 17:05:38 -0300, Jérôme BERNARD <
> jerome.bernard@gmail.com> wrote:
>
>  Hi,
>>
>
> Hi!
>
>  Quick email to let you know that if some of you are interested in using
>> Perf4J (http://perf4j.codehaus.org) with Tapestry, I've released a module
>> simplifying this a bit: http://kalixia.github.com/tapestry-perf4j/
>>
>
> Bookmarked! This seems very interesting. :) Thanks for sharing!
>

You're welcome. I have some few ideas on how to enhance the components, so I
will most likely update it in a short time.
I'd like at least to add auto-refresh (simple as I already use a zone for
the graph).
I'd like also to dynamically generate the appenders from Java code instead
of relying on log4j configuration files.
This would give the ability to dynamically add/remove appenders hence graphs
;-)


> There has been many Tapestry and Tapestry-IoC based projects being
> announced lately. This shows how the framework and its community are alive
> and thriving. :)


Definitely!
And TIA book will also help a lot the community ;-)


Jerome.

Re: Tapestry & Perf4J

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Mon, 28 Mar 2011 17:05:38 -0300, Jérôme BERNARD  
<je...@gmail.com> wrote:

> Hi,

Hi!

> Quick email to let you know that if some of you are interested in using
> Perf4J (http://perf4j.codehaus.org) with Tapestry, I've released a module
> simplifying this a bit: http://kalixia.github.com/tapestry-perf4j/

Bookmarked! This seems very interesting. :) Thanks for sharing!

There has been many Tapestry and Tapestry-IoC based projects being  
announced lately. This shows how the framework and its community are alive  
and thriving. :)

-- 
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Tapestry & Perf4J

Posted by Josh Canfield <jo...@gmail.com>.
Interesting. I actually built something backed by javasimon
(http://javasimon.webnode.com/), although instead of providing a UI
component I went the JMX integration route. My intention has been to
eventually present the project for integration into the tapestry
repository.

I posted the code here
(https://github.com/joshcanfield/tapestry-monitoring) so people can
take a look and decide if it's worthy...

Basically it's an annotation "@Monitor" which creates an MBean that
describes the activity for the annotated method. We use BigBrother to
monitor our services so keeping historical information on the server
being monitored was not a concern.

As an aside, I ran into some trouble getting @Match(*) to work from
the MonitorModule so currently I'm naming the services to be monitored
in each app's module class. Here's an example from my unit tests:

@Match("(HelloService|Renamed|One|Two|SubMonitored)")
public static void adviseForMonitoredServices(MethodAdviceReceiver
receiver, MonitorAdviser monitorAdviser) {
        monitorAdviser.monitor(receiver);
}

If anyone can fix that I'd appreciate it!

Josh


On Mon, Mar 28, 2011 at 1:05 PM, Jérôme BERNARD
<je...@gmail.com> wrote:
> Hi,
>
> Quick email to let you know that if some of you are interested in using
> Perf4J (http://perf4j.codehaus.org) with Tapestry, I've released a module
> simplifying this a bit:
> http://kalixia.github.com/tapestry-perf4j/
>
>
> I hope this can be useful to some of you.
>
> Regards,
> Jerome.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org