Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jvmbytes/agent
agent to export Instrumentation
https://github.com/jvmbytes/agent
instrumentation java javaagent
Last synced: about 2 months ago
JSON representation
agent to export Instrumentation
- Host: GitHub
- URL: https://github.com/jvmbytes/agent
- Owner: jvmbytes
- License: apache-2.0
- Created: 2019-08-01T13:17:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-02T01:14:44.000Z (over 4 years ago)
- Last Synced: 2024-10-31T17:03:10.018Z (2 months ago)
- Topics: instrumentation, java, javaagent
- Language: Java
- Homepage:
- Size: 20.5 KB
- Stars: 6
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
**jvmbytes inst agent** allows you to config once and use **Instrumentation** for multiple times and in multiple libraries.
**jvmbytes inst agent** export the **Instrumentation** instance to multiple bytes libraries,
which can be included in application classpath and loaded by **AppClassloader**,
so that it's not need to update java command config,
and which is always hard to change in production environment.## usage
1. add `inst-loader` dependency in pom.xml:
```xmlcom.jvmbytes.agent
inst-loader
1.0.1```
2. load **Instrumentation** instance through `com.jvmbytes.agent.inst.InstLoader.loadInst()`.
3. download inst-agent-1.0.1.jar
```shell script
wget https://search.maven.org/remotecontent?filepath=com/jvmbytes/agent/inst-agent/1.0.1/inst-agent-1.0.1.jar
```4. add `-javaagent:inst-agent-1.0.1.jar` for java process
```shell script
java -javaagent:inst-agent-1.0.1.jar -jar app.jar
```> see [demo](inst-demo/README.md)