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.
Panel | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
Thanks are due to YourKit for providing ~20 licenses to uPortal developers for use of YourKit on uPortal per YourKit's friendly policy supporting open source projects. |
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:
No Format |
---|
[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 "-Xrunypagent" to JAVA_OPTS in either startup.sh or startup.bat
3) Start uPortal in the console you should see something like:
No Format |
---|
[java] [YourKit Java Profiler 3.1.1 #449] Listening on port 10000...
|
4) Start YourKit and connect to port 10000This page has moved to a new location inside the JA-SIG Confluence space.