Wiki source code of Profiling
Version 6.2 by Manuel Smeria on 2013/03/22 15:01
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{box cssClass="floatinginfobox" title="**Contents**"}} | ||
2 | {{toc/}} | ||
3 | {{/box}} | ||
4 | |||
5 | Profiling is useful to find out performance bottlenecks and find out memory hogs. There are 2 types of tools that can be easily used to profile XWiki. | ||
6 | |||
7 | = Profiling using a Profiler = | ||
8 | |||
9 | The best tool for the job is of course a [[profiler>>http://en.wikipedia.org/wiki/Profiling_(computer_programming)]]. Follow the steps: | ||
10 | |||
11 | * Get a [[profiler>>http://en.wikipedia.org/wiki/Profiling_(computer_programming)]] | ||
12 | ((( | ||
13 | {{info}} | ||
14 | For XWiki committers, we have free YourKit licenses for developing on XWiki. | ||
15 | {{/info}} | ||
16 | ))) | ||
17 | * [[Build XWiki>>Building]] or simply download a XWiki binary release | ||
18 | * Check your profiler's documentation to see the command line that needs to be added when starting the XWiki JVM. | ||
19 | * If you're using YourKit you can start XWiki Enterprise with the following command line: ##start_xwiki_debug.sh 8080 profiler /path/where/agent/is## (for example: ##start_xwiki_debug.sh 8080 profiler "/Applications/YourKit Java Profiler 7.0.11.app/bin/mac"##) | ||
20 | * Run the Profiler and then start XWiki | ||
21 | |||
22 | = Profiling using Byteman = | ||
23 | |||
24 | See [[Byteman>>http://www.jboss.org/byteman]] and the [[XWiki Byteman tutorial>>Debugging#HUsingByteman]]. |