Skip to content

Commit 6561103

Browse files
committed
Markdown linting
1 parent e08f06a commit 6561103

File tree

235 files changed

+137
-128
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

235 files changed

+137
-128
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,32 @@
11
---
2-
title: Download Java Agent
2+
title: 1. Download Java Agent
33
weight: 1
44
description: In this exercise you will access your AppDynamics Controller from your web browser and download the Java APM agent from there.
55
---
66
In this exercise you will access the AppDynamics Controller from a web browser and download the Java APM agent from there.
77

88
## Login to the Controller
9-
Log into the [AppDynamics SE Lab Controller](https://se-lab.saas.appdynamics.com/controller/) using your Cisco credentials.
9+
10+
Log into the [AppDynamics SE Lab Controller](https://se-lab.saas.appdynamics.com/controller/) using your Cisco credentials.
1011

1112
## Configure your Application
1213

1314
1. Select **Overview** on the left navigation panel
1415
2. Click on **Getting Started** tab
15-
3. Click on **Getting Started Wizard** button
16+
3. Click on **Getting Started Wizard** button
1617

17-
![Getting Started Wizard](images/agent-wizard-rz.png)
18+
![Getting Started Wizard](images/agent-wizard-rz.png)
1819

19-
Select the Java Application Type
20+
Select the Java Application Type
2021

2122
![Java Application](images/select-java-rz.png)
2223

2324
## Download the Java Agent
2425

25-
1. Select the **Sun/JRockit - Legacy** for the JVM type
26+
1. Select the **Sun/JRockit - Legacy** for the JVM type
2627
2. Accept defaults for the Controller connection.
2728
3. Under **Set Application and Tier**, select **Create a new Application:**
28-
4. Enter **Supercar-Trader-YOURINITIALS** as the application name.
29+
4. Enter **Supercar-Trader-YOURINITIALS** as the application name.
2930
5. Enter **Web Portal** for the new Tier
3031
6. Enter **Web-Portal_Node-01** for the Node Name
3132
7. Click **Continue**
@@ -39,8 +40,6 @@ The application name must be unique, make sure to append your initials or add a
3940

4041
![Agent Configuration2](images/java-agent-config2-rz.png)
4142

42-
43-
Your browser should prompt you that the agent is being downloaded to your local file system. Make sure to take note of where the file was downloaded to and the full name of it.
43+
Your browser should prompt you that the agent is being downloaded to your local file system. Make sure to take note of where the file was downloaded to and the full name of it.
4444

4545
![Agent Bundle](images/agent-bundle-rz.png)
46-
Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Install the Java Agent
2+
title: 2. Install the Java Agent
33
weight: 2
44
description: In this exercise you will SSH into your server and proceed to install the Java agent.
55
---
@@ -12,29 +12,35 @@ In this exercise you will perform the following actions:
1212
- Modify the Apache Tomcat startup script to add the Java agent
1313

1414
## Upload Java Agent to Application VM
15+
1516
By this point you should have received the information regarding the EC2 instance that you will be using for this workshop. Ensure you have the IP address of your EC2 instance, username and password required to ssh into the instance .
1617

1718
On your local machine, open a terminal window and change into the directory where the java agent file was downloaded to. Upload the file into the EC2 instance using the following command. This may take some time to complete.
1819

19-
* Update the IP address or public DNS for your instance.
20-
* Update the filename to match your exact version.
20+
- Update the IP address or public DNS for your instance.
21+
- Update the filename to match your exact version.
2122

2223
{{< tabs >}}
2324
{{% tab title="Command" %}}
25+
2426
``` bash
2527
cd ~/Downloads
2628
scp -P 2222 AppServerAgent-22.4.0.33722.zip [email protected]:/home/splunk
2729
```
30+
2831
{{% /tab %}}
2932
{{% tab title="Example Output" %}}
33+
3034
``` bash
3135
([email protected]) Password:
3236
AppServerAgent-22.4.0.33722.zip 100% 22MB 255.5KB/s 01:26
3337
```
38+
3439
{{% /tab %}}
3540
{{< /tabs >}}
3641

37-
## Unzip the Java Agent
42+
## Unzip the Java Agent
43+
3844
SSH into your EC2 instance using the instance and password assigned to you by the instructor.
3945

4046
``` bash
@@ -61,28 +67,30 @@ There are three primary ways to set the configuration properties of the Java age
6167
3. Properties within the ```controller-info.xml``` file.
6268
{{% /notice %}}
6369

64-
6570
## Add the Java Agent to the Tomcat Server
6671

67-
First we want to make sure that the Tomcat server is not running
72+
First we want to make sure that the Tomcat server is not running
6873

6974
``` bash
7075
cd /usr/local/apache/apache-tomcat-9/bin
7176
./shutdown.sh
7277
```
7378

74-
We will now modify the catalina script to set an environment variable with the java agent.
79+
We will now modify the catalina script to set an environment variable with the java agent.
7580

7681
``` bash
7782
cd /usr/local/apache/apache-tomcat-9/bin
7883
nano catalina.sh
79-
```
84+
```
85+
8086
Add the following line at 125 (after the initial comments) & save the file
87+
8188
``` bash
8289
export CATALINA_OPTS="$CATALINA_OPTS -javaagent:/opt/appdynamics/javaagent/javaagent.jar"
83-
```
90+
```
8491

8592
Restart the server
93+
8694
``` bash
8795
./startup.sh
8896
```
@@ -91,11 +99,14 @@ Validate that the Tomcat server is running, this can take a few minutes
9199

92100
{{< tabs >}}
93101
{{% tab title="Command" %}}
102+
94103
``` bash
95104
curl localhost:8080
96105
```
106+
97107
{{% /tab %}}
98108
{{% tab title="Example Output" %}}
109+
99110
``` bash
100111
<!DOCTYPE html>
101112
<html lang="en">
@@ -110,5 +121,6 @@ curl localhost:8080
110121
<div id="wrapper"
111122
....
112123
```
124+
113125
{{% /tab %}}
114126
{{< /tabs >}}
Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Generate Application Load
2+
title: 3. Generate Application Load
33
weight: 3
44
description: In this section you will install the sample application and begin the load generation
55
---
@@ -15,23 +15,26 @@ The sample application home page is accessible through your web browser with a U
1515

1616
```bash
1717
http://[ec2-ip-address]:8080/Supercar-Trader/home.do
18-
```
18+
```
1919

2020
You should be able to see the home page of the Supercar Trader application.
2121
![Supercar Trade Home Page](images/SuperCarHomePage-rz.png)
2222

2323
## Start the Load Generation
2424

25-
SSH into your ec2 instance and start the load generation. It may take a few minutes for all the scripts to run.
25+
SSH into your ec2 instance and start the load generation. It may take a few minutes for all the scripts to run.
2626

2727
{{< tabs >}}
2828
{{% tab title="Command" %}}
29+
2930
``` bash
3031
cd /opt/appdynamics/lab-artifacts/phantomjs
3132
./start_load.sh
3233
```
34+
3335
{{% /tab %}}
3436
{{% tab title="Example Output" %}}
37+
3538
``` bash
3639
Cleaning up artifacts from previous load...
3740
Starting home-init-01
@@ -70,32 +73,33 @@ Starting request-error-01
7073
Starting mem-leak-insurance
7174
Finished starting load generator scripts 100% 22MB 255.5KB/s 01:26
7275
```
76+
7377
{{% /tab %}}
7478
{{< /tabs >}}
7579

7680
## Confirm transaction load in the Controller
7781

7882
If you still have the Getting Started Wizard open in your web browser, you should see that the agent is now connected and that the Controller is receiving data.
83+
7984
![Agent Connected](images/agent_connected.png)
80-
Click **Continue** and you will be taken to the **Application Flow Map** (you can jump to the Flow Map image below).
8185

86+
Click **Continue** and you will be taken to the **Application Flow Map** (you can jump to the Flow Map image below).
8287

8388
If you previously closed the Controller browser window, log back into the Controller.
8489

8590
1. From the Overview page (Landing Page). Click on the **Applications** tab on the left navigation panel.
8691

87-
![Controller Overview Page](images/ControllerOverviewPage.png)
92+
![Controller Overview Page](images/ControllerOverviewPage.png)
8893

89-
2. Within the **Applications** page you can manually search for your application or you can use the search bar in the top right corner to narrow down your search.
94+
2. Within the **Applications** page you can manually search for your application or you can use the search bar in the top right corner to narrow down your search.
9095

91-
![Applications Search](images/ApplicationsSearch.png)
96+
![Applications Search](images/ApplicationsSearch.png)
9297

9398
Click in your application's name, this should bring you into the **Application Flow Map**, you should see all the application components appear after twelve minutes.
9499

95100
If you don’t see all the application components after twelve minutes, try waiting a few more minutes and refresh your browser tab.
96-
97-
![FlowMap](images/SuperCarTrader_FlowMap-rz.png)
98101

102+
![FlowMap](images/SuperCarTrader_FlowMap-rz.png)
99103

100104
During the agent download step we assigned the Tier name and Node name for the Tomcat server.
101105

@@ -110,29 +114,34 @@ To see the JVM startup parameters used for each of the four services that were d
110114

111115
{{< tabs >}}
112116
{{% tab title="Command" %}}
117+
113118
``` bash
114119
ps -ef | grep appdynamics.agent.tierName
115-
```
120+
```
121+
116122
{{% /tab %}}
117123
{{% tab title="Loadgen Output" %}}
124+
118125
``` bash
119126
splunk 47131 46757 3 15:34 pts/1 00:08:17 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -javaagent:/opt/appdynamics/javaagent/javaagent.jar -Dappdynamics.controller.hostName=se-lab.saas.appdynamics.com -Dappdynamics.controller.port=443 -Dappdynamics.controller.ssl.enabled=true -Dappdynamics.agent.applicationName=Supercar-Trader-AppD-Workshop -Dappdynamics.agent.tierName=Api-Services -Dappdynamics.agent.nodeName=Api-Services_Node-01 -Dappdynamics.agent.accountName=se-lab -Dappdynamics.agent.accountAccessKey=hj6a4d7h2cuq -Xms64m -Xmx512m -XX:MaxPermSize=256m supercars.services.api.ApiService
120127
splunk 47133 46757 2 15:34 pts/1 00:08:11 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -javaagent:/opt/appdynamics/javaagent/javaagent.jar -Dappdynamics.controller.hostName=se-lab.saas.appdynamics.com -Dappdynamics.controller.port=443 -Dappdynamics.controller.ssl.enabled=true -Dappdynamics.agent.applicationName=Supercar-Trader-AppD-Workshop -Dappdynamics.agent.tierName=Inventory-Services -Dappdynamics.agent.nodeName=Inventory-Services_Node-01 -Dappdynamics.agent.accountName=se-lab -Dappdynamics.agent.accountAccessKey=hj6a4d7h2cuq -Xms64m -Xmx512m -XX:MaxPermSize=256m supercars.services.inventory.InventoryService
121128
splunk 47151 46757 1 15:34 pts/1 00:04:58 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -javaagent:/opt/appdynamics/javaagent/javaagent.jar -Dappdynamics.controller.hostName=se-lab.saas.appdynamics.com -Dappdynamics.controller.port=443 -Dappdynamics.controller.ssl.enabled=true -Dappdynamics.agent.applicationName=Supercar-Trader-AppD-Workshop -Dappdynamics.agent.tierName=Insurance-Services -Dappdynamics.agent.nodeName=Insurance-Services_Node-01 -Dappdynamics.agent.accountName=se-lab -Dappdynamics.agent.accountAccessKey=hj6a4d7h2cuq -Xms64m -Xmx68m -XX:MaxPermSize=256m supercars.services.insurance.InsuranceService
122129
splunk 47153 46757 3 15:34 pts/1 00:08:17 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -javaagent:/opt/appdynamics/javaagent/javaagent.jar -Dappdynamics.controller.hostName=se-lab.saas.appdynamics.com -Dappdynamics.controller.port=443 -Dappdynamics.controller.ssl.enabled=true -Dappdynamics.agent.applicationName=Supercar-Trader-AppD-Workshop -Dappdynamics.agent.tierName=Enquiry-Services -Dappdynamics.agent.nodeName=Enquiry-Services_Node-01 -Dappdynamics.agent.accountName=se-lab -Dappdynamics.agent.accountAccessKey=hj6a4d7h2cuq -Xms64m -Xmx512m -XX:MaxPermSize=256m supercars.services.enquiry.EnquiryService
123130
splunk 144789 46722 0 20:09 pts/1 00:00:00 grep --color=auto appdynamics.agent.tierName
124131
```
132+
125133
{{% /tab %}}
126134
{{< /tabs >}}
127135

128136
Once all of the components appear on the flow map, you should see an HTTP cloud icon that represents the three HTTP backends called by the Insurance-Services Tier.
129137

130138
Ungroup the the three HTTP backends by following these steps.
139+
131140
1. Right click the HTTP cloud icon labeled 3 HTTP backends
132141
2. From the drop down menu, select Ungroup Backends
133142

134-
![Ungroup Http](images/ungroup-http-rz.png)
143+
![Ungroup Http](images/ungroup-http-rz.png)
135144

136-
Once the HTTP backends have been ungrouped, you should see all three HTTP backends as shown in the following image.
145+
Once the HTTP backends have been ungrouped, you should see all three HTTP backends as shown in the following image.
137146

138-
![Ungroup flow](images/ungrouped_flow-rz.png)
147+
![Ungroup flow](images/ungrouped_flow-rz.png)

0 commit comments

Comments
 (0)