Skip to content

Commit 6589512

Browse files
author
Mangesh Sangapu
committed
Update to address all blocking and non-blocking issues
1 parent 1eee9e6 commit 6589512

9 files changed

+13
-11
lines changed
1.88 KB
Loading
-35.8 KB
Loading
-7.21 KB
Loading
13.9 KB
Loading

articles/app-service/containers/tutorial-troubleshoot-monitor.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -106,17 +106,21 @@ Select the first two images and click `convert`. This will convert successfully.
106106

107107
### Break the app
108108

109-
Now that you've verified the app by converting two images successfully, we'll try to convert the first five images. This action fails and produces a `HTTP 500` error that wasn't tested during development.
109+
Now that you've verified the app by converting two images successfully, we'll try to convert the first five images.
110+
111+
![Convert first five images](./media/tutorial-azure-monitor/sample-monitor-app-convert-five-images.png)
112+
113+
This action fails and produces a `HTTP 500` error that wasn't tested during development.
110114

111115
![The convert will result in a HTTP 500 error](./media/tutorial-azure-monitor/sample-monitor-app-http-500.png)
112116

113117
## Use log query to view Azure Monitor logs
114118

115119
Let's see what logs are available in the Log Analytics workspace.
116120

117-
Click this [Log Analytics workspace link](https://ms.portal.azure.com/#blade/HubsExtension/BrowseResourceBlade/resourceType/Microsoft.OperationalInsights%2Fworkspaces) to access your workspace in the Azure Portal.
121+
Click this [Log Analytics workspace link](https://ms.portal.azure.com/#blade/HubsExtension/BrowseResourceBlade/resourceType/Microsoft.OperationalInsights%2Fworkspaces) to access your workspace in the Azure portal.
118122

119-
In the Azure Portal, select your Log Analytics workspace.
123+
In the Azure portal, select your Log Analytics workspace.
120124

121125
### Log queries
122126

@@ -136,7 +140,7 @@ Now that we've accessed the app, let's view the data associated with HTTP reques
136140

137141
3. Click `Run`.
138142

139-
![Log Analytics Workspace App Service HTTP Logs](./media/tutorial-azure-monitor/log-analytics-workspace-AppServiceHTTPLogs.png)
143+
![Log Analytics Workspace App Service HTTP Logs](./media/tutorial-azure-monitor/log-analytics-workspace-app-service-http-logs.png)
140144

141145
The `AppServiceHTTPLogs` query returns all requests in the past 24-hours. The column `ScStatus` contains the HTTP status. To diagnose the `HTTP 500` errors, limit the `ScStatus` to 500 and run the query, as shown below:
142146

@@ -145,8 +149,6 @@ AppServiceHTTPLogs
145149
| where ScStatus == 500
146150
```
147151

148-
![AppServiceConsoleLogs](./media/tutorial-azure-monitor/app-service-http-logs.png)
149-
150152
### View AppServiceConsoleLogs with log query
151153

152154
Now that you've confirmed the HTTP 500s, let's take a look at the standard output/errors from the app. These logs are found in `AppServiceConsoleLogs'.
@@ -168,7 +170,7 @@ In the `ResultDescription` column, you'll see the following error:
168170

169171
```
170172
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted
171-
(tried to allocate 16384 bytes) in /home/site/wwwroot/process.php on line 17,
173+
(tried to allocate 16384 bytes) in /home/site/wwwroot/process.php on line 20,
172174
referer: http://<app-name>.azurewebsites.net/
173175
```
174176

@@ -181,7 +183,7 @@ Now that you've identified both HTTP 500s and standard errors, you need to confi
181183
>
182184
> - Filters HTTPLogs for 500 errors
183185
> - Queries console logs
184-
> - Joins the tables based on `TimeGenerated`
186+
> - Joins the tables on `TimeGenerated`
185187
>
186188
187189
Run the following query:
@@ -198,15 +200,15 @@ In the `ResultDescription` column, you'll see the following error at the same ti
198200

199201
```
200202
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted
201-
(tried to allocate 16384 bytes) in /home/site/wwwroot/process.php on line 17,
203+
(tried to allocate 16384 bytes) in /home/site/wwwroot/process.php on line 20,
202204
referer: http://<app-name>.azurewebsites.net/
203205
```
204206

205-
The message states memory has been exhausted on line 17 of `process.php`. You've now confirmed that the application produced an error during the HTTP 500 error. Let's take a look at the code to identify the problem.
207+
The message states memory has been exhausted on line 20 of `process.php`. You've now confirmed that the application produced an error during the HTTP 500 error. Let's take a look at the code to identify the problem.
206208

207209
## Identify the error
208210

209-
In the local directory, open the `process.php` and look at line 17.
211+
In the local directory, open the `process.php` and look at line 20.
210212

211213
```php
212214
imagepng($imgArray[$x], $filename);

0 commit comments

Comments
 (0)