Navigation

RSS 2.0 New Entries Syndication Feed Atom 0.3 New Entries Syndication Feed

Show blog menu v

 

General

Use it

Documentation

Support

Sibling projects

RIFE powered

Valid XHTML 1.0 Transitional

Valid CSS!

Blogs : Latest entries

avatar
Profiling Terracotta clients with YourKit is dead easy

While tracking down some performance characteristics of the ConcurrentHashMap class with Terracotta, I decided to run it through the YourKit profiler.

I remember that a while ago, someone on the Terracotta mailing list was having difficulties profiling client applications since we instrument the JDK classes through a bootjar. I thus expected to run into problems with YourKit. To my surprise I didn't experience a single one. Following the instructions on the YourKit website to manually enable profiling, did exactly what was expected and I was thus able to get all the information I wanted.

As an example, this is similar to the command line that I executed:

java -agentlib:yjpagent=sampling,onexit=snapshot
    -cp /path/to/project/classes
    -Dtc.install-root=$TC_INSTALL_DIR
    -Xbootclasspath/p:$TC_INSTALL_DIR/lib/dso-boot/dso-boot-hotspot_linux_160_02.jar
    -Dtc.config=tc-config.xml
    com.MyMainClass

Just thought that this might be helpful to know ;)

posted by Geert Bevin in Terracotta on Oct 25, 2007 12:17 PM : 0 comments [permalink]
 

 
 
 
Google
rifers.org web