Allocations

The heap allocations of another JVM on this machine, read with the JDK alone: the Attach API starts the JVM's local management agent (or finds it started), and its ThreadMXBean answers the bytes all its threads, the finished ones included, allocated since it started (JDK 21). connect attaches once, before the measured phase (B.O-2: starting the agent costs the target a moment); each Reader.read after is one call over the open connection, which waits at most READ_TIMEOUT for the answer: a call whose answer the connection lost hung for minutes, past the run's drain (#7109).

Types

Link copied to clipboard

An open connection to one JVM's ThreadMXBean, whose allocated call each read makes on a thread of its own, waiting at most timeout. A read that fails or does not answer in time gives no figure, and missing says why.

Properties

Link copied to clipboard

How long a read waits for the JVM's answer before it gives the figure up.

Functions

Link copied to clipboard