Pivotal Knowledge Base

Follow

Enabling the YourKit Profiler with tc Server running in SpringSource Tool Suite (2000980)

Enabling the YourKit Profiler with tc Server running in SpringSource Tool Suite (2000980)

Purpose

The YourKit profiler is a popular way to profile a Java applications.  In addition to plain Java applications, YourKit can be used to profile a web application running in tc Server.  This article outlines the instructions for configuring tc Server & YourKit when tc Server is running inside of SpringSource Tool Suite.

Resolution

For the purposes of this article, it will be assumed that YourKit is installed into the /opt/yjp-9.5.4 directory.  The exact installation path and version number may vary based on the installation of YourKit.
 
The following steps document how to integrate the YourKit profiler with a tc Server instance running inside of STS.
  1. Go to the Servers tab in STS, double-click on your tc Server instance.
  2. Click the Open launch configuration link.
  3. Click on the Arguments tab.
  4. Add one of these lines to the beginning of the VM arguments textbox.  Please note that the following examples are specific for 32-bit and 64-bit Linux, if using a different OS, look into the bin directory of the YourKit installation for the specific path to the YourKit agent library.

    For example:  For Linux 32-bit Java

    -agentpath:/opt/yjp-9.5.4/bin/linux-x86-32/libyjpagent.so=disablestacktelemetry,disableexceptiontelemetry,builtinprobes=none,delay=10000

    For example: For Linux 64-bit Java

    -agentpath:/opt/yjp-9.5.4/bin/linux-x86-64/libyjpagent.so=disablestacktelemetry,disableexceptiontelemetry,builtinprobes=none,delay=10000

  5. Restart the tc Server instance.  After restarting, ensure the first line of the Console tab displays, a message similar to this:

    [YourKit Java Profiler 9.5.4] Loaded. Log file: /home/user/.yjp/log/7191.log

    This means that the YourKit profiler has been enabled for the tc Server instance running inside of STS.  If you do not see this line in the log file, please check that the VM arguments were correctly edited in step number four.

  6. Start the YourKit application.  The Monitor Local Applications panel should now contain an entry for the tc Server instance (Note: it is actually labeled as Tomcat). Click the link to start profiling an application deployed to the tc Server instance.
 For additional details, please see the manual installation instruction page in the YourKit documentation.
 
Note: The information provided in this link is provided as is and VMware does not guarantee the accuracy or applicability of this information. The preceding link was correct as of June 25, 2011. If you find the link is broken, provide feedback and a VMware employee will update the link.

Additional Information

THE CONTENT OF THIS ARTICLE IS PROVIDED "AS-IS," AND TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, VMWARE DISCLAIMS ALL OTHER REPRESENTATIONS AND WARRANTIES, EXPRESS OR IMPLIED, REGARDING THIS CONTENT, INCLUDING THEIR FITNESS FOR A PARTICULAR PURPOSE, THEIR MERCHANTABILITY, OR THEIR NONINFRINGEMENT. VMWARE SHALL NOT BE LIABLE FOR ANY DAMAGES ARISING OUT OF OR IN CONNECTION WITH THE USE OF THIS CONTENT, INCLUDING DIRECT, INDIRECT, CONSEQUENTIAL DAMAGES, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF VMWARE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

©VMware 2013

Comments

Powered by Zendesk