Skip to content

jakubhalun/tt2016_attach_api_agent_loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Attach API Agent Loader

This application uses Attach API to load a Java Agent into a running Java Virtual Machine with a provided process id.

Prerequisites

  • System variable JAVA_HOME set to JDK directory

Execution

Discover the process id of the running virtual machine:

jps

Example output:

$ jps
10160
7832 jar
3356 Jps

Load the Java agent:

java -classpath $JAVA_HOME/lib/tools.jar:attach-api-agent-loader.jar -Djava.library.path=$JAVA_HOME/jre/bin pl.halun.demo.attach.api.AgentLoader 7832 agent.jar

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages