Using YourKit Profiles on Fedora with Tomcat as an RPM

Posted: January 20, 2012 in Uncategorized

We use YourKit at work, and it is a pretty good profiles which runs on Linux. All of the instructions I saw talk about how to integrate with Tomcat if you have the tarball install. We install with the rpms, and so a bit of investigation was required.

First, install YourKit in /opt. I had it in ~/bin but I got a whole bunch of permission errors. I have SELinux set to permissive, and this still did not help. So, for me, it is installed in /opt/yjp-9.5.4/.

Next, I added the Config for the agent to the /etc/tomcat6/tocmcat6.conf file. The line looks like this:


When you do a “service tomcat6 start” the init scripts will pick up the JAVA_OPTS variable. You can then laucnh the profiler and connect to do the needful in looking for performance issues.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s