Skip to content

jakon89/jvm-dynamic-attach-using-golang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Attach into JVM using Golang and Dynamic Attach API

The demo shows how to attach to running JVM process by using Dynamic Attach API and Golang.

How it works

tl;dr:

  • check user permissions
  • create "attach file"
  • send SIGQUIT to the target JVM
  • send the command to the socket

I suggest going trough dunamic_attach.go#executeCommand method to see what's inside.

Demo

Just run docker-compose up and observe the output carefully.

See also blogpost describing what one could do using techniques presented here.

About

Attach into running JVM process using Golang + Dynamic Attach API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published