mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-06-19 00:24:20 +00:00
Add jattach utility (#4114)
This commit is contained in:
@@ -35,4 +35,20 @@ The labels that are most interesting are:
|
||||
|
||||
- `org.opencontainers.image.created` : the date/time the image was built
|
||||
- `org.opencontainers.image.revision` : which maps to <https://github.com/itzg/docker-minecraft-server/commit/REVISION>
|
||||
- `org.opencontainers.image.version` : image tag and variant [as described in this page](../versions/java.md)
|
||||
- `org.opencontainers.image.version` : image tag and variant [as described in this page](../versions/java.md)
|
||||
|
||||
## jattach
|
||||
|
||||
This image bundles the [jattach](https://github.com/jattach/jattach) utility for attaching to running Java processes. It is described as
|
||||
|
||||
> The utility to send commands to a JVM process via Dynamic Attach mechanism.
|
||||
>
|
||||
> All-in-one jmap + jstack + jcmd + jinfo functionality in a single tiny program.
|
||||
|
||||
When exec'ed interactively into the container, jattach can be invoked against the Minecraft server's java process by using commands similar to the following
|
||||
|
||||
!!! example
|
||||
|
||||
```shell
|
||||
jattach $(pgrep java) threaddump
|
||||
```
|
||||
Reference in New Issue
Block a user