Analyze Performance in Amazon Web Services* (AWS*) EC2* Instances

You can analyze application performance using the Intel® Advisor in an Amazon Web Services* (AWS*) EC2* instance. This section describes how to set up and connect to your instance, and get started using the Intel Advisor GUI or command line interface (CLI).

  1. Prerequisites

  2. Launch an AWS EC2 instance.

  3. Connect to the AWS EC2 instance using PuTTY.

  4. Upload all tools, applications, and supporting files to the AWS EC2 instance using WinSCP.

  5. Install and set up the Intel Advisor and other supporting tools.

  6. Use the Intel Advisor GUI to analyze performance.

  7. Alternative steps

Ingredients

This section lists the hardware and software used to produce the specific result shown in this recipe:

Prerequisites

Launch an AWS EC2 Instance

Follow the instructions in Profiling Applications in Amazon Web Services* (AWS) EC2 Instances. Take note of the:

Connect to the AWS EC2 Instance Using PuTTY

  1. Configure the secure SSH connection. During configuration, enter:

    • The private key file in Connection > SSH > Options controlling SSH authentication > Authentication parameters > Private key file for authentication:

      Connect to the AWS EC2 instance using PuTTY: Configure private key

    • The public IP address in Session > Basic options for your PuTTY session > Specify the destination you want to connect to > Host Name (or IP address):

      Connect to the AWS EC2 instance using PuTTY: Configure public IP address

  2. Establish the secure SSH connection and log in using the default user name for the AMI:

    Connect to the AWS EC2 instance using PuTTY: Log in

Upload All Tools, Applications, and Supporting Files to the AWS EC2 Instance Using WinSCP

  1. Configure the WinSCP connection. During configuration, enter the:

    • The public IP address in Session > Host name

    • The default user name for the AMI in Session > User name

      Upload to the AWS EC2 instance using WinSCP: Configure public IP address and default user name

    • The private key file in Session > Advanced Site Settings > SSH > Authentication > Private key file for authentication

      Connect to the AWS EC2 instance using WinSCP: Configure private key

  2. Log in to the AWS EC2 instance.

  3. Upload the Intel Advisor installation package, the target application, and all other supporting tools, libraries, and files.

Install and Set Up the Intel Advisor and Other Supporting Tools

  1. Uncompress the Intel Advisor installation package.

  2. Launch the installation executable.

    Note

    During installation, you may be asked to install external libraries upon which the Intel Advisor depends. In this recipe, libraries were uploaded from the following entities: GTK, Pango, ALSA, and X.Org.

  3. Set up the Intel Advisor:

    source /opt/intel/advisor_2019.1.0.579143/advixe-vars.sh

Use the Intel Advisor GUI to Analyze Performance

Use the Intel Advisor GUI to run analyses, view results, generate reports, including an interactive Roofline report you can view in a browser, create snapshots you can port to a local machine, and more.

  1. Set up a GUI in the AWS EC2 instance:

    • Install VNC technology and necessary libraries.

    • Run a VNC server.

    • Create an SSH tunnel with the correct port number.

    • Connect to the AWS EC2 instance using a VNC viewer.

  2. Launch advixe-gui to open the Intel Advisor GUI.

Alternative Steps

You can also use the Intel Advisor command line interface (CLI) to accomplish most Intel Advisor tasks. For example:

Note

Running the CLI does not require setting up a GUI in the AWS EC2 instance.