You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Stuart Roebuck <st...@adolos.co.uk> on 2002/12/05 12:41:25 UTC
Profiling Cocoon for cheapskates
I need to do some code optimization / profiling on Cocoon and some
additional Cocoon libraries we've built. This raises an issue which I
thought might be of general interest, and hoped might open up some new
avenues of profiling discovery!
If there was an open source based approach to profiling Cocoon code, I
would be happy to write up the process to aid others in the future.
x--------------------x
x Unfortunately... x
x--------------------x
* We're on a budget and can't afford to pay $400+ per seat for a
commercial profiling tool.
* java -Xrunhprof appears to die during final output when given the
significant task of profiling our code in Cocoon in Tomcat in Java,
etc.. It's also fairly slow, but we would live with that if it worked.
x------------------x
x Fortunately... x
x------------------x
* We're developing on Mac OS X - but that might not help us in finding
low budget profiling tools! :-)
x----------------x
x Resources... x
x----------------x
* A good starting point for profiling resources is Jack Shirazi's Java
Performance Tuning web site:
<http://www.javaperformancetuning.com/>
which has a list of free tools:
<http://www.javaperformancetuning.com/
resources.shtml#ProfilingToolsFree>
My initial attempts (though brief) to get a selection of these running
on Mac OS X has been unsuccessful.
x----------------x
x Questions... x
x----------------x
1. Does anyone have any experience of any free profiling tools other
than the built in JDK tools?
2. Is there a way of turning the built in profiling facilities on and
off with code (in order to selectively profile code and avoid
overloading the built in profiling facilities). This used to be
possible in Java 1.1. <-- little known useless fact!
3. Any other useful Cocoon library profiling suggestions?
Stuart.
Public Key - 1024D/88DD65AF 2001-11-23 Stuart Roebuck
(Adolos)
Key fingerprint = 89D9 E405 F8B1 9B22 0FA2 F2C1 9E57 5AB1 88DD
65AF
------------------------------------------------------------------------
-
Stuart Roebuck
stuart.roebuck@adolos.com
Systems Architect Java, XML, MacOS X, XP,
etc.
ADOLOS
<http://www.adolos.com/>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: Profiling Cocoon for cheapskates
Posted by Antonio Gallardo <ag...@agsoftware.dnsalias.com>.
Well, about profilling piece of code I have no clues.
I use instead JMeter. This is a Server Load Testing tool. May be it can
help you too.
Link: http://jakarta.apache.org/jmeter/index.html
I hope it will help you.
Antonio Gallardo
Stuart Roebuck dijo:
> I need to do some code optimization / profiling on Cocoon and some
> additional Cocoon libraries we've built. This raises an issue which I
> thought might be of general interest, and hoped might open up some new
> avenues of profiling discovery!
>
> If there was an open source based approach to profiling Cocoon code, I
> would be happy to write up the process to aid others in the future.
>
> x--------------------x
> x Unfortunately... x
> x--------------------x
>
> * We're on a budget and can't afford to pay $400+ per seat for a
> commercial profiling tool.
>
> * java -Xrunhprof appears to die during final output when given the
> significant task of profiling our code in Cocoon in Tomcat in Java,
> etc.. It's also fairly slow, but we would live with that if it worked.
>
> x------------------x
> x Fortunately... x
> x------------------x
>
> * We're developing on Mac OS X - but that might not help us in finding
> low budget profiling tools! :-)
>
> x----------------x
> x Resources... x
> x----------------x
>
> * A good starting point for profiling resources is Jack Shirazi's Java
> Performance Tuning web site:
> <http://www.javaperformancetuning.com/>
> which has a list of free tools:
> <http://www.javaperformancetuning.com/
> resources.shtml#ProfilingToolsFree>
> My initial attempts (though brief) to get a selection of these running
> on Mac OS X has been unsuccessful.
>
> x----------------x
> x Questions... x
> x----------------x
>
> 1. Does anyone have any experience of any free profiling tools other
> than the built in JDK tools?
>
> 2. Is there a way of turning the built in profiling facilities on and
> off with code (in order to selectively profile code and avoid
> overloading the built in profiling facilities). This used to be
> possible in Java 1.1. <-- little known useless fact!
>
> 3. Any other useful Cocoon library profiling suggestions?
>
>
> Stuart.
>
>
> Public Key - 1024D/88DD65AF 2001-11-23 Stuart Roebuck
> (Adolos)
> Key fingerprint = 89D9 E405 F8B1 9B22 0FA2 F2C1 9E57 5AB1 88DD
> 65AF
> ------------------------------------------------------------------------
> -
> Stuart Roebuck
> stuart.roebuck@adolos.com
> Systems Architect Java, XML, MacOS X, XP,
> etc.
> ADOLOS
> <http://www.adolos.com/>
>
>
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: Profiling Cocoon for cheapskates
Posted by Stuart Roebuck <st...@adolos.co.uk>.
Stefano,
On Thursday, December 5, 2002, at 09:39 pm, Stefano Mazzocchi wrote:
> Vadim Gritsenko wrote:
>> Stuart Roebuck wrote:
>>> I need to do some code optimization / profiling on Cocoon and some
>>> additional Cocoon libraries we've built. This raises an issue which
>>> I thought might be of general interest, and hoped might open up
>>> some new avenues of profiling discovery!
>>>
>>> If there was an open source based approach to profiling Cocoon code,
>>> I would be happy to write up the process to aid others in the
>>> future.
>>>
>>> x--------------------x
>>> x Unfortunately... x
>>> x--------------------x
>>>
>>> * We're on a budget and can't afford to pay $400+ per seat for a
>>> commercial profiling tool.
>> ...
>> OptimizeIt costs money, but I've got a license... I *will* profile
>> Cocoon sometime again, and would do it sooner, but my unfortunate
>> schedule moves this event to the 1Q or 2Q of the next year.
>
> I got a 30-days evaluation license of OptimizeIt and run it against
> Cocoon a while ago and I found out that cocoon (talking about CVS
> HEAD) is pretty well optimized already, expecially for memory
> consumption over requests.
>
> Look into the mail archives for that message since I sent a report
> here to the list.
Thanks for that. I did read through those mailings both at the time
when they were posted, and yesterday when I was searching the archive
for hints and tips. My selfish interest was in finding ways of
profiling some of our own code with works on top of Cocoon, but the
principles of profiling Cocoon and related code should be the same, so
I hoped it was appropriate to ask for any hints and tips.
From my point of view, whenever I have been writing code for Cocoon I
have done a lot of unit testing on components utilizing 'Mock' classes,
and I have done more broad brush system performance testing, but I have
always shirked away from full blown profiling because attempts at it
have met with failure or masses of incomprehensible or useless data.
If I could find a simple way of profiling code 'in context' it might
help to improve the performance of our code.
So far, jProfiler (which offers an 8 day trial) has proven very easy
and effective and seems to run fine on Java 1.4.1 on Mac OS X. Now I
just have to find some way of paying for it!
Stuart.
Public Key - 1024D/88DD65AF 2001-11-23 Stuart Roebuck
(Adolos)
Key fingerprint = 89D9 E405 F8B1 9B22 0FA2 F2C1 9E57 5AB1 88DD
65AF
------------------------------------------------------------------------
-
Stuart Roebuck
stuart.roebuck@adolos.com
Systems Architect Java, XML, MacOS X, XP,
etc.
ADOLOS
<http://www.adolos.com/>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: Profiling Cocoon for cheapskates
Posted by Stefano Mazzocchi <st...@apache.org>.
Vadim Gritsenko wrote:
> Stuart Roebuck wrote:
>
>> I need to do some code optimization / profiling on Cocoon and some
>> additional Cocoon libraries we've built. This raises an issue which
>> I thought might be of general interest, and hoped might open up some
>> new avenues of profiling discovery!
>>
>> If there was an open source based approach to profiling Cocoon code,
>> I would be happy to write up the process to aid others in the future.
>>
>> x--------------------x
>> x Unfortunately... x
>> x--------------------x
>>
>> * We're on a budget and can't afford to pay $400+ per seat for a
>> commercial profiling tool.
>
>
> ...
>
> OptimizeIt costs money, but I've got a license... I *will* profile
> Cocoon sometime again, and would do it sooner, but my unfortunate
> schedule moves this event to the 1Q or 2Q of the next year.
I got a 30-days evaluation license of OptimizeIt and run it against
Cocoon a while ago and I found out that cocoon (talking about CVS HEAD)
is pretty well optimized already, expecially for memory consumption over
requests.
Look into the mail archives for that message since I sent a report here
to the list.
--
Stefano Mazzocchi <st...@apache.org>
--------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: Profiling Cocoon for cheapskates
Posted by Vadim Gritsenko <va...@verizon.net>.
Stuart Roebuck wrote:
> I need to do some code optimization / profiling on Cocoon and some
> additional Cocoon libraries we've built. This raises an issue which
> I thought might be of general interest, and hoped might open up some
> new avenues of profiling discovery!
>
> If there was an open source based approach to profiling Cocoon code,
> I would be happy to write up the process to aid others in the future.
>
> x--------------------x
> x Unfortunately... x
> x--------------------x
>
> * We're on a budget and can't afford to pay $400+ per seat for a
> commercial profiling tool.
...
OptimizeIt costs money, but I've got a license... I *will* profile
Cocoon sometime again, and would do it sooner, but my unfortunate
schedule moves this event to the 1Q or 2Q of the next year.
Vadim
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: Profiling Cocoon for cheapskates
Posted by Stuart Roebuck <st...@adolos.co.uk>.
Jeremy,
Thanks for the suggestion, I'm making fair use of a selection of the
unit testing tools you've mentioned, but I haven't seen the book which
does sound worth a read. However, I was really looking for some more
objective testing (in the subjective/objective sense of the word!) to
throw up those unexpected, un-unit-tested bits of code used in-context.
Failing on the free side, today I've been trying out jprofiler:
<http://www.ej-technologies.com/products/jprofiler/overview.html>
which is not cheap, but it's better than most.
So far I'm quite impressed. I was up an running profiling my code in
Cocoon in Tomcat within minutes of downloading my trial.
Stuart.
On Thursday, December 5, 2002, at 12:29 pm, Jeremy Aston wrote:
> Hi Stuart,
>
> My strongest recommendation would be to go out at lunchtime to your
> nearest
> Borders or Waterstones and see if they have Richard Hightower's "Java
> Tools
> for eXtreme Programming". If not - order it from Amazon for delivery
> tomorrow! This is one of the best computer books I have ever read and
> covers Junit, HttpUnit, Cactus, Jmeter, JunitPerf etc. I have used
> HttpUnit
> tests on Cocoon apps without issue and expect to be able to use the
> same
> tests as the base for performance measuring since the tools share a
> base
> architecture.
>
> All the tools are free, Java based and *should* work without issue on
> the
> Mac. Using the various tools you can set tests up to handle
> fundamental
> class methods (Junit), front end functionality (HttpUnit), in container
> stuff (Cactus) and tie it all up to performance tests with
> Jmeter/JunitPerf.
>
> HTH
>
> Jez
> jez@pigbite.com
>
>
>
>
> -----Original Message-----
> From: Stuart Roebuck [mailto:stuart.roebuck@adolos.co.uk]
> Sent: 05 December 2002 11:41
> To: Cocoon-dev@xml.apache.org
> Subject: Profiling Cocoon for cheapskates
>
> I need to do some code optimization / profiling on Cocoon and some
> additional Cocoon libraries we've built. This raises an issue which I
> thought might be of general interest, and hoped might open up some new
> avenues of profiling discovery!
>
> If there was an open source based approach to profiling Cocoon code, I
> would be happy to write up the process to aid others in the future.
>
> x--------------------x
> x Unfortunately... x
> x--------------------x
>
> * We're on a budget and can't afford to pay $400+ per seat for a
> commercial profiling tool.
>
> * java -Xrunhprof appears to die during final output when given the
> significant task of profiling our code in Cocoon in Tomcat in Java,
> etc.. It's also fairly slow, but we would live with that if it worked.
>
> x------------------x
> x Fortunately... x
> x------------------x
>
> * We're developing on Mac OS X - but that might not help us in finding
> low budget profiling tools! :-)
>
> x----------------x
> x Resources... x
> x----------------x
>
> * A good starting point for profiling resources is Jack Shirazi's Java
> Performance Tuning web site:
> <http://www.javaperformancetuning.com/>
> which has a list of free tools:
> <http://www.javaperformancetuning.com/
> resources.shtml#ProfilingToolsFree>
> My initial attempts (though brief) to get a selection of these running
> on Mac OS X has been unsuccessful.
>
> x----------------x
> x Questions... x
> x----------------x
>
> 1. Does anyone have any experience of any free profiling tools other
> than the built in JDK tools?
>
> 2. Is there a way of turning the built in profiling facilities on and
> off with code (in order to selectively profile code and avoid
> overloading the built in profiling facilities). This used to be
> possible in Java 1.1. <-- little known useless fact!
>
> 3. Any other useful Cocoon library profiling suggestions?
>
>
> Stuart.
>
>
> Public Key - 1024D/88DD65AF 2001-11-23 Stuart Roebuck
> (Adolos)
> Key fingerprint = 89D9 E405 F8B1 9B22 0FA2 F2C1 9E57 5AB1 88DD
> 65AF
> -----------------------------------------------------------------------
> -
> -
> Stuart Roebuck
> stuart.roebuck@adolos.com
> Systems Architect Java, XML, MacOS X, XP,
> etc.
> ADOLOS
> <http://www.adolos.com/>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>
>
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>
>
Public Key - 1024D/88DD65AF 2001-11-23 Stuart Roebuck
(Adolos)
Key fingerprint = 89D9 E405 F8B1 9B22 0FA2 F2C1 9E57 5AB1 88DD
65AF
------------------------------------------------------------------------
-
Stuart Roebuck
stuart.roebuck@adolos.com
Systems Architect Java, XML, MacOS X, XP,
etc.
ADOLOS
<http://www.adolos.com/>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
RE: Profiling Cocoon for cheapskates
Posted by Jeremy Aston <je...@yahoo.co.uk>.
Hi Stuart,
My strongest recommendation would be to go out at lunchtime to your nearest
Borders or Waterstones and see if they have Richard Hightower's "Java Tools
for eXtreme Programming". If not - order it from Amazon for delivery
tomorrow! This is one of the best computer books I have ever read and
covers Junit, HttpUnit, Cactus, Jmeter, JunitPerf etc. I have used HttpUnit
tests on Cocoon apps without issue and expect to be able to use the same
tests as the base for performance measuring since the tools share a base
architecture.
All the tools are free, Java based and *should* work without issue on the
Mac. Using the various tools you can set tests up to handle fundamental
class methods (Junit), front end functionality (HttpUnit), in container
stuff (Cactus) and tie it all up to performance tests with Jmeter/JunitPerf.
HTH
Jez
jez@pigbite.com
-----Original Message-----
From: Stuart Roebuck [mailto:stuart.roebuck@adolos.co.uk]
Sent: 05 December 2002 11:41
To: Cocoon-dev@xml.apache.org
Subject: Profiling Cocoon for cheapskates
I need to do some code optimization / profiling on Cocoon and some
additional Cocoon libraries we've built. This raises an issue which I
thought might be of general interest, and hoped might open up some new
avenues of profiling discovery!
If there was an open source based approach to profiling Cocoon code, I
would be happy to write up the process to aid others in the future.
x--------------------x
x Unfortunately... x
x--------------------x
* We're on a budget and can't afford to pay $400+ per seat for a
commercial profiling tool.
* java -Xrunhprof appears to die during final output when given the
significant task of profiling our code in Cocoon in Tomcat in Java,
etc.. It's also fairly slow, but we would live with that if it worked.
x------------------x
x Fortunately... x
x------------------x
* We're developing on Mac OS X - but that might not help us in finding
low budget profiling tools! :-)
x----------------x
x Resources... x
x----------------x
* A good starting point for profiling resources is Jack Shirazi's Java
Performance Tuning web site:
<http://www.javaperformancetuning.com/>
which has a list of free tools:
<http://www.javaperformancetuning.com/
resources.shtml#ProfilingToolsFree>
My initial attempts (though brief) to get a selection of these running
on Mac OS X has been unsuccessful.
x----------------x
x Questions... x
x----------------x
1. Does anyone have any experience of any free profiling tools other
than the built in JDK tools?
2. Is there a way of turning the built in profiling facilities on and
off with code (in order to selectively profile code and avoid
overloading the built in profiling facilities). This used to be
possible in Java 1.1. <-- little known useless fact!
3. Any other useful Cocoon library profiling suggestions?
Stuart.
Public Key - 1024D/88DD65AF 2001-11-23 Stuart Roebuck
(Adolos)
Key fingerprint = 89D9 E405 F8B1 9B22 0FA2 F2C1 9E57 5AB1 88DD
65AF
------------------------------------------------------------------------
-
Stuart Roebuck
stuart.roebuck@adolos.com
Systems Architect Java, XML, MacOS X, XP,
etc.
ADOLOS
<http://www.adolos.com/>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: Profiling Cocoon for cheapskates
Posted by Steven Punte <st...@yahoo.com>.
function SetDomain(d) { document.domain = d; }There is a built-in Cocoon generator component: org.apache.cocoon.components.profiler.ProfilerGenerator that provides pretty good time-consumption reporting of components in a pipeline. The above generator output some XML, and then there is a stylesheet to put in into nicer HTML. Search notes group for more details.
Steve Punte
---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now