Wiki source code of Development-Profiling WO Apps

Last modified by Pascal Robert on 2012/01/21 23:56

Hide last authors
Pascal Robert 10.1 1 A profiler is a development tool that lets you examine memory useage and other bottlenecks in your app.
Pascal Robert 6.1 2
Kieran Kelleher 12.1 3 === Kieran Kelleher ===
4
Pascal Robert 19.1 5 Free and simple. I like the built-in sun monitoring tool. Java 1.5+ only.
Kieran Kelleher 12.1 6
7 Simply add appropriate argument to your launch configuration:
Pascal Robert 19.1 8 [[image:attach:config.jpg]]
Kieran Kelleher 12.1 9
10 After that, open your unix terminal and type jconsole which launches the monitoring console and detects running java apps. Select your app and watch it at work. I like the Memory and Threads tabs.
Pascal Robert 19.1 11 [[image:attach:jconsole.jpg]]
Kieran Kelleher 12.1 12
Pascal Robert 10.1 13 === Ulrich Köster ===
Pascal Robert 6.1 14
15 I've tried some of them.
16
17 For the big problems jprofiler is great. The docs are useful, the interface is good and the performance is okay.
Pascal Robert 19.1 18 I prefer jMechanic. It's small, free and works together with WOLips. Just some clicks to set it up.
Pascal Robert 6.1 19
20 I don't remember much about the others. Some of them don't run under MacOSX and it can take a lot of time to find how to use them together with WO.
21
Pascal Robert 19.1 22 profiler homepage: [[http:~~/~~/www.ej-technologies.com/products/jprofiler/overview.html>>url:http://www.ej-technologies.com/products/jprofiler/overview.html||shape="rect"]] j
23 jmechanic homepage: [[http:~~/~~/sourceforge.net/projects/jmechanic/>>url:http://sourceforge.net/projects/jmechanic/||shape="rect"]]
24 Ulrich
Pascal Robert 6.1 25
Pascal Robert 10.1 26 === Chuck Hill ===
Pascal Robert 6.1 27
28 If profiling on Windows is an option, you might also want to look at jSprint:
Pascal Robert 19.1 29 [[http:~~/~~/www.javaperformancetuning.com/tools/jsprint/index.shtml>>url:http://www.javaperformancetuning.com/tools/jsprint/index.shtml||shape="rect"]]
Pascal Robert 6.1 30
Pascal Robert 10.1 31 It is shareware, US$50. I've used it and was satisfied with it. It seems like a good deal for the price. I've not (yet) used jMechanic, so I can't compare the two.
Pascal Robert 6.1 32
Pascal Robert 19.1 33 Before you buy anything or try anything you would be well advised to spend a couple of hours at the above Java Performance Tuning site reading up on it: [[http:~~/~~/www.javaperformancetuning.com/index.shtml>>url:http://www.javaperformancetuning.com/index.shtml||shape="rect"]]
34 There is a lot of good information there.
Pascal Robert 6.1 35
Pascal Robert 10.1 36 === David Hrivnak ===
Pascal Robert 6.1 37
38 (As of March 2007 the J-Sprint link above does not seem to work - the software may not be available anymore)
Pascal Robert 19.1 39 None of the tools on this page appear to work with WebObjects 4.5.1 on Windows.
Pascal Robert 6.1 40
Pascal Robert 10.1 41 === Mike Schrag ===
Pascal Robert 6.1 42
Pascal Robert 19.1 43 I use [[JProfiler>>url:http://www.ej-technologies.com/products/jprofiler/overview.html||shape="rect"]] from [[ej-technologies>>url:http://www.ej-technologies.com||shape="rect"]]. It works as well as any of the other big named profilers, and it has explicit support for WebObjects. It is, however, not free like some of the other suggestions.
Pascal Robert 6.1 44
Pascal Robert 10.1 45 === Pierce T. Wetter III ===
Pascal Robert 6.1 46
47 The CHUD tools (i.e. Shark) work on Java.
Pascal Robert 18.1 48
49 === Using Shark with WebObjects ===
50
Pascal Robert 19.1 51 If you want to use Shark, Mark Ritchie did a [[presentation>>url:http://www.wocommunity.org/podcasts/wowodc/west08/WOWODC08_Shark.mp4||shape="rect"]] about using Shark with WebObjects at WOWODC 2008.