Phase 1: Run with AppDynamics

1. Build the App

1 min

The workshop includes a simple Spring Boot application with a few REST endpoints. Let’s build it.

Verify Java and Maven

Your instance has OpenJDK 17 and Maven pre-installed. Confirm:

bash
java -version && mvn -version

Build the Application

Navigate to the workshop app directory and build the fat JAR:

bash
cd ~/workshop/appd/app
mvn package -DskipTests

First build

The first mvn package downloads Spring Boot dependencies. This takes 30-60 seconds. Subsequent builds are much faster.

Test the Application (without AppD)

Run the app briefly to confirm it starts:

bash
java -jar target/ingest-workshop-1.0.0.jar &

Wait a few seconds, press return to go back to your prompt, then test:

bash
curl -s localhost:8080/health | jq .

Stop the app before proceeding:

bash
kill %1

The application works. Next, you’ll download the AppDynamics Java Agent so you can attach it to this process.

Last Modified ·