Fully featured low overhead profiler for Java EE and Java SE platforms.
Easy-to-use performance and memory .NET profiler for Windows, Linux and macOS.
Secure and easy profiling in cloud, containers and clustered environments.
Performance monitoring and profiling of Jenkins, Bamboo, TeamCity, Gradle, Maven, Ant and JUnit.

Profiling in Amazon EC2 instance

1. Getting IP and key

In this example we will use SSH connection to the Amazon EC2 instance to profile a Java application. First you need to know a public IP address. Select your instance in EC2 Management Console and find the address at "IPv4 Public IP" in "Description" tab.

instance IP address

To get authentication key see "Key pair name" in "Description" tab and locate the corresponding key on your computer. We will use key pair aws-key-pair and aws-key-pair.pem file, which was generated by the Management Console.

instance key pair

Amazon Linux image, like in this example, has default user with the name ec2-user. If you have different image, please see its documentation or consult system administrator to obtain your authentication settings.

2. Profile Remote Application dialog

Use Profile remote Java server or application... action on Welcome screen or in Profile menu.

Profiler remote app on Welcome screen

In the opened dialog choose SSH access application discovery method.

Enter public IP address noted above. Provide SSH port, SSH user and the private key in the corresponding fields.

remote connection settings

Created connection will appear in the Monitor Applications list on Welcome screen.

3. Connect from Welcome Screen

In the first communication profiler will upload all necessary files, and you will see "Connecting..." message. This might take up to a few minutes depending on your network speed.

connecting

4. Attach to the application

Applications without the profiler agent are marked with orange circle. You can attach and profile the application, by clicking on its name. Please note that you will not see applications running under a different user, unless your start it with the profiler agent.

remote attach

Applications running with the profiler agent are marked with green circle. Click on the application name to connect and profile it.

connected

If you do not see your application it the list, please check troubleshooting and FAQ.

5. Start application with the profiler agent

If attach doesn't work for you, consider starting the Java application with the profiler agent following one of the other methods.

YourKit uses cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content, to analyze our website traffic, and to understand where our visitors are coming from.

By browsing our website, you consent to our use of cookies and other tracking technologies in accordance with the Privacy Policy.