Yourkit
Java profiling tools
This page is for documentation of tools we find useful for profiling Java applications in terms of memory usage, method calls, speed performance, etc.
Using Yourkit
Profiling uP Quickstart
1) Install YourKit Java Profiler
2) Update tomcatstart target in build.xml to include:
<target name="tomcatstart">
<echo message="Starting Tomcat 5.0.28"/>
<java fork="true"
dir="${basedir}"
classname="org.apache.catalina.startup.Bootstrap">
<jvmarg value="-Xrunyjpagent"/>
...
3) Start uP Quickstart...in the console you should see something like:
[java] [YourKit Java Profiler 3.1.1 #449] Listening on port 10000...
4) Start YourKit and connect to port 10000
Profiling uP Source running under Tomcat
1) Install YourKit Java Profiler
2) Add "-Xrunyjpagent" to JAVA_OPTS in either startup.sh or startup.bat
3) Start uPortal in the console you should see something like:
[java] [YourKit Java Profiler 3.1.1 #449] Listening on port 10000...
4) Start YourKit and connect to port 10000
For more information see Profiling Memory and CPU usage with YourKit.