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 > [EMAIL PROTECTED] > Systems Architect Java, XML, MacOS X, XP, > etc. > ADOLOS > <http://www.adolos.com/> > > > --------------------------------------------------------------------- To > unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]