Skip to content

Commit 1ecd175

Browse files
authored
Improve maintaining-an-installation.md (#69)
1 parent 437c0c3 commit 1ecd175

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/developer-guide/maintaining-an-installation.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,15 @@ Use `explain analyze <SQL query>` to obtain the query plan and display it in htt
8686
If the JVM was started with `-XX:NativeMemoryTracking=summary`, use this to get an overview (see [here](https://trustmeiamadeveloper.com/2016/03/18/where-is-my-memory-java/) for more details):
8787

8888
```shell
89-
docker exec -it openremote_manager_1 /usr/bin/jcmd 1 VM.native_memory summary
89+
docker exec -it or-manager-1 /usr/bin/jcmd 1 VM.native_memory summary
9090
```
9191

92-
Otherwise, use [](https://docs.oracle.com/javase/8/docs/technotes/tools/unix/jstat.html) to monitor a running system/JVM.
92+
Otherwise, use [`jstat`](https://docs.oracle.com/en/java/javase/21/docs/specs/man/jstat.html) to monitor a running system/JVM.
9393

9494
Get current memory configuration:
9595

9696
```shell
97-
docker exec -it openremote_manager_1 /usr/bin/jstat -gccapacity 1
97+
docker exec -it or-manager-1 /usr/bin/jstat -gccapacity 1
9898
```
9999

100100
Output contains:
@@ -123,7 +123,7 @@ FGC: Number of full GC events.
123123
The following command will connect to a Manager and print garbage collection statistics (polling 1000 times, waiting for 2.5 seconds):
124124

125125
```shell
126-
docker exec -it openremote_manager_1 /usr/bin/jstat -gcutil 1 2500 1000
126+
docker exec -it or-manager-1 /usr/bin/jstat -gcutil 1 2500 1000
127127
```
128128

129129
The output contains:
@@ -158,7 +158,7 @@ docker exec or-manager-1 /bin/bash -c 'microdnf --setopt=install_weak_deps=0 --s
158158

159159
## Performing a heap dump (`jmap`)
160160

161-
The `jmap` tool within the JDK can be used to create a heap dump of a running jvm.
161+
The [`jmap`](https://docs.oracle.com/en/java/javase/21/docs/specs/man/jmap.html) tool within the JDK can be used to create a heap dump of a running JVM.
162162

163163
### Create heap dump
164164
```shell
@@ -178,11 +178,11 @@ scp {HOST}:~/dump.hprof ~
178178
You can then explore the heap dump with an IDE or other tool.
179179

180180
## Performing a thread dump (`jstack`)
181-
The `jmap` tool within the JDK can be used to create a heap dump of a running jvm.
181+
The [`jstack`](https://docs.oracle.com/en/java/javase/21/docs/specs/man/jstack.html) tool within the JDK can be used to create a thread dump of a running JVM.
182182

183183
### Create thread dump
184184
```shell
185-
docker exec or-manager-1 /bin/bash -c 'jstack 1 > /threads.txt'
185+
docker exec or-manager-1 /bin/bash -c 'jstack -l 1 > /threads.txt'
186186
```
187187

188188
### Copy to Docker host

0 commit comments

Comments
 (0)