Skip to content

Commit

Permalink
Release 2.0. Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
apangin committed Aug 11, 2021
1 parent 24823a4 commit 6de69a9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
JATTACH_VERSION=1.6
JATTACH_VERSION=2.0

ifneq ($(findstring Windows,$(OS)),)
CL=cl.exe
Expand Down
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,28 @@ https://docs.oracle.com/javase/8/docs/jdk/api/attach/spec/
- **printflag** : print VM flag
- **jcmd** : execute jcmd command

### Download

Binaries are available on the [Releases](https://github.com/apangin/jattach/releases) page.

On some platforms, you can also [install](#installation) jattach with a package manager.

### Examples
#### Load JVMTI agent
#### Load native agent

$ jattach <pid> load <.so-path> { true | false } [ options ]

Where `true` means that the path is absolute, `false` -- the path is relative.

`options` are passed to the agent.

#### Load Java agent

Java agents are loaded by the special built-in native agent named `instrument`,
which takes .jar path and its arguments as a single options string.

$ jattach <pid> load instrument false "javaagent.jar=arguments"

#### List available jcmd commands

$ jattach <pid> jcmd "help -all"
Expand Down
7 changes: 6 additions & 1 deletion jattach.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: jattach
Version: 1.5
Version: 2.0
Release: 1
Summary: JVM Dynamic Attach utility

Expand Down Expand Up @@ -35,6 +35,11 @@ install -p -m 555 %{_sourcedir}/bin/jattach ${BIN}
/usr/bin/jattach

%changelog
* Wed Aug 11 2021 Vadim Tsesko <incubos@yandex.com> - 2.0-1
- Attach to OpenJ9 VMs
- Pass agent error codes
- Improved container support

* Wed Jan 09 2018 Vadim Tsesko <incubos@yandex.com> - 1.5-1
- Improved attach to containerized JVMs
- chroot support
Expand Down

0 comments on commit 6de69a9

Please sign in to comment.