MemoryAllocation

zio.metrics.jvm.MemoryAllocation
See theMemoryAllocation companion object
final case class MemoryAllocation(listener: NotificationListener, garbageCollectorMXBeans: List[GarbageCollectorMXBean])

The garbage collection listener that counts the bytes allocated in each JVM memory pool, and the garbage collector beans of the JVM. The listener is registered only with the beans that are a NotificationEmitter. After each collection, the listener adds the growth of each pool's used memory since the previous collection and during this one to the counter jvm_memory_pool_allocated_bytes_total, tagged with pool.

Attributes

Companion
object
Source
MemoryAllocation.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product