Skip to content

Commit 89731a6

Browse files
committed
edits
1 parent 9337b14 commit 89731a6

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

articles/spring-apps/tools-to-troubleshoot-memory-issues.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,32 +89,39 @@ You can find this feature on the Azure portal, as shown in the following screens
8989

9090
For further debugging, you can manually capture heap dumps and thread dumps, and use Java Flight Recorder (JFR). For more information, see [Capture heap dump and thread dump manually and use Java Flight Recorder in Azure Spring Apps](how-to-capture-dumps.md).
9191

92-
Heap dump records the state of the Java heap memory. Thread dump records the stacks of all live threads. These tools are available through the [Azure CLI](how-to-capture-dumps.md) and on the app page of the Azure portal, as shown in the following screenshot.
92+
Heap dumps record the state of the Java heap memory. Thread dumps record the stacks of all live threads. These tools are available through the Azure CLI and on the app page of the Azure portal, as shown in the following screenshot.
9393

9494
:::image type="content" source="media/tools-to-troubleshoot-memory-issues/capture-dump-location.png" alt-text="Screenshot of Azure portal showing app overview page with Troubleshooting button highlighted." lightbox="media/tools-to-troubleshoot-memory-issues/capture-dump-location.png":::
9595

96-
You can also use third party tools like [Memory Analyzer](https://www.eclipse.org/mat/) to analyze heap dumps.
96+
For more information, see [Capture heap dump and thread dump manually and use Java Flight Recorder in Azure Spring Apps](how-to-capture-dumps.md). You can also use third party tools like [Memory Analyzer](https://www.eclipse.org/mat/) to analyze heap dumps.
9797

9898
## Modify configurations to fix problems
9999

100100
Some issues you might identify include [container OOM](how-to-fix-app-restart-issues-caused-by-out-of-memory.md#fix-app-restart-issues-due-to-oom), heap memory that's too large, and abnormal garbage collection. If you identify any of these issues, you may need to configure the maximum memory size in the JVM options. For more information, see the [Important JVM options](concepts-for-java-memory-management.md#important-jvm-options) section of [Java memory management](concepts-for-java-memory-management.md#important-jvm-options).
101101

102-
This feature is available on Azure CLI and on the Azure portal.
102+
You can modify the JVM options by using the Azure portal or the Azure CLI.
103103

104-
### Using portal to update jvm options:
104+
### [Azure portal](#tab/azure-portal)
105+
106+
In the Azure portal, navigate to your app, then select **Configuration** from the **Settings** section of the navigation menu. On the **General Settings** tab, update the **JVM options** field, as shown in the following screenshot:
105107

106108
:::image type="content" source="media/tools-to-troubleshoot-memory-issues/maxdirectmemorysize-location.png" alt-text="Screenshot of Azure portal showing app configuration page with JVM options highlighted." lightbox="media/tools-to-troubleshoot-memory-issues/maxdirectmemorysize-location.png":::
107109

108-
### Using azure cli to update jvm options
110+
### [Azure CLI](#tab/azure-cli)
111+
112+
Use the following command to update the JVM options for your app. Be sure to replace the placeholders with your actual values. For example, you can replace the *`<jvm-options>`* placeholder with a value such as `-Xms1024m -Xmx1536m`.
113+
109114
```azurecli
110115
az spring app update \
111116
--resource-group <resource-group-name> \
112117
--service <Azure-Spring-Apps-instance-name> \
113118
--app <app-name> \
114119
--deployment <deployment-name> \
115-
--jvm-options <-Xms1024m -Xmx1536m> \
120+
--jvm-options <jvm-options> \
116121
```
117122

123+
---
124+
118125
## See also
119126

120127
- [Java memory management](concepts-for-java-memory-management.md)

0 commit comments

Comments
 (0)