Documentation ¶
Overview ¶
Package java contains implementation for JavaTLS support.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InjectAgent ¶
InjectAgent injects the given agent into the given java process
Types ¶
type Hotspot ¶
type Hotspot struct {
// contains filtered or unexported fields
}
Hotspot java has a specific protocol, described here:
o touch .attach_pid<pid-of-java> o kill -SIGQUIT <pid-of-java> o java process check if .attach_pid<his-pid> exit o then create a unix socket .java_pid<his-pid> o we can write command through the unix socket <pid-of-java> refers to the namespaced pid of the process.
Public documentation https://openjdk.org/groups/hotspot/docs/Serviceability.html#battach
func NewHotspot ¶
NewHotspot create an object to connect to a JVM hotspot pid (host pid) and nsPid (within the namespace pid)
NSPid field was introduced in kernel >= 4.1 So we can't support container on Centos 7 (kernel 3.10)
Click to show internal directories.
Click to hide internal directories.