How to do remote profiling, if you have only console access to remote machine


In this blog, I would explain how to do remote profiling on remote machine, if you are not a root user and you have only console access to remote machine.
I have used YourKit for profiling, which is one of the best and user friendly tool for profiling.

Please follow the steps, mentioned below, to step up yourkit on remote machine:-

1) Download tar.bz2 archive

2) Unpack:tar xfj .tar.bz2

3) Set Environment variable

LD_LIBRARY_PATH=//bin/linux-x86-64

4) Run below command and follow instruction

sh /bin/yjp.sh -integrate

After running above command, you would get an agent path.

Add -agentpath: VM option to the command line of Java application, on which you want to do profiling.

5) Now with command line tool, you can start profiling.

java -jar /lib/yjp-controller-api-redist.jar

You will get a list of options. Pick an option from the list and run above command with that option. It will generate a snapshot.

Advertisements

About Ayush Mishra

Ayush is the Sr. Software Consultant @ Knoldus Software LLP. In his 5 years of experience he has become developer with proven experience in architecting and developing web applications. Ayush has a Masters in Computer Application from U.P. Technical University, Ayush is a strong-willed and self-motivated professional who takes deep care in adhering to quality norms within projects. He is capable of managing challenging projects with remarkable deadline sensitivity without compromising code quality. .
This entry was posted in Agile, Amazon EC2, Architecture. Bookmark the permalink.

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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