jvm

package
v1.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JvmStatExporter

type JvmStatExporter struct {
	// contains filtered or unexported fields
}

func NewJvmStatExporter

func NewJvmStatExporter(opt JvmStatExporterOpt) *JvmStatExporter

func (*JvmStatExporter) Collect

func (e *JvmStatExporter) Collect(ch chan<- prometheus.Metric)

func (*JvmStatExporter) Describe

func (e *JvmStatExporter) Describe(ch chan<- *prometheus.Desc)

type JvmStatExporterOpt

type JvmStatExporterOpt struct {
	PidFn        func() (int, error)
	Namespace    string
	ReportErrors bool
}

type JvmStats

type JvmStats struct {
	JavaThreads JvmStatsJavaThreads `jvm:"java.threads"`
	Gc          JvmStatsGc          `jvm:"sun.gc"`
	Ci          JvmStatsCi          `jvm:"sun.ci"`
	Cls         JvmStatsCls         `jvm:"java.cls,sun.cls"`
	ClsLoader   JvmStatsClassLoader `jvm:"sun.classloader"`
	Rt          JvmStatsRt          `jvm:"sun.rt"`
	Os          JvmStatsOs          `jvm:"sun.os"`
}

JVM stats from hsperfdata, only java.threads and sun.gc, others are left unparsed

func (*JvmStats) Parse

func (s *JvmStats) Parse(perf map[string]interface{}) error

type JvmStatsCi

type JvmStatsCi struct {
	TotalTime             int64  `jvm:"totalTime"`
	LastFailedMethod      string `jvm:"lastFailedMethod"`
	LastFailedType        int    `jvm:"lastFailedType"`
	LastInvalidatedMethod string `jvm:"lastInvalidatedMethod"`
	LastInvalidatedType   int    `jvm:"lastInvalidatedType"`
	LastMethod            string `jvm:"lastMethod"`
	LastSize              int    `jvm:"lastSize"`
	LastType              int    `jvm:"lastType"`
	NmethodCodeSize       int64  `jvm:"nmethodCodeSize"`
	NmethodSize           int64  `jvm:"nmethodSize"`
	OsrBytes              int64  `jvm:"osrBytes"`
	OsrCompiles           int    `jvm:"osrCompiles"`
	OsrTime               int64  `jvm:"osrTime"`
	StandardBytes         int64  `jvm:"standardBytes"`
	StandardCompiles      int    `jvm:"standardCompiles"`
	StandardTime          int64  `jvm:"standardTime"`
	Threads               int    `jvm:"threads"`
	TotalBailouts         int    `jvm:"totalBailouts"`
	TotalCompiles         int    `jvm:"totalCompiles"`
	TotalInvalidates      int    `jvm:"totalInvalidates"`
	CompilerThreads       []JvmStatsCiCompilerThread
}

func (*JvmStatsCi) Parse

func (c *JvmStatsCi) Parse(m map[string]interface{}) error

type JvmStatsCiCompilerThread

type JvmStatsCiCompilerThread struct {
	Compiles int    `jvm:"compiles"`
	Method   string `jvm:"method"`
	Time     int64  `jvm:"time"`
	Type     int    `jvm:"type"`
}

func (*JvmStatsCiCompilerThread) Parse

func (t *JvmStatsCiCompilerThread) Parse(m map[string]interface{}) error

type JvmStatsClassLoader

type JvmStatsClassLoader struct {
	FindClassTime         int64 `jvm:"findClassTime"`
	FindClasses           int   `jvm:"findClasses"`
	ParentDelegationTime  int64 `jvm:"parentDelegationTime"`
	UrlReadClassBytesTime int64 `jvm:"readClassBytesTime"`
}

func (*JvmStatsClassLoader) Parse

func (l *JvmStatsClassLoader) Parse(m map[string]interface{}) error

type JvmStatsCls

type JvmStatsCls struct {
	LoadedClasses         int `jvm:"loadedClasses"`
	SharedLoadedClasses   int `jvm:"sharedLoadedClasses"`
	SharedUnloadedClasses int `jvm:"sharedUnLoadedClasses"`
	UnloadedClasses       int `jvm:"unloadedClasses"`

	AppClassBytes                     int64 `jvm:"appClassBytes"`
	AppClassLoadCount                 int   `jvm:"appClassLoadCount"`
	AppClassLoadTime                  int64 `jvm:"appClassLoadTime"`
	AppClassLoadTimeSelf              int64 `jvm:"appClassLoadTime.self"`
	ClassInitTime                     int64 `jvm:"classInitTime"`
	ClassInitTimeSelf                 int64 `jvm:"classInitTime.self"`
	ClassLinkedTime                   int64 `jvm:"classLinkedTime"`
	ClassLinkedTimeSelf               int64 `jvm:"classLinkedTime.self"`
	ClassVerifyTime                   int64 `jvm:"classVerifyTime"`
	ClassVerifyTimeSelf               int64 `jvm:"classVerifyTime.self"`
	DefineAppClassTime                int64 `jvm:"defineAppClassTime"`
	DefineAppClassTimeSelf            int64 `jvm:"defineAppClassTime.self"`
	DefineAppClasses                  int   `jvm:"defineAppClasses"`
	InitializedClasses                int   `jvm:"initializedClasses"`
	IsUnsyncloadClassSet              int   `jvm:"isUnsyncloadClassSet"`
	JniDefineClassNoLockCalls         int   `jvm:"jniDefineClassNoLockCalls"`
	JvmDefineClassNoLockCalls         int   `jvm:"jvmDefineClassNoLockCalls"`
	JvmFindLoadedClassNoLockCalls     int   `jvm:"jvmFindLoadedClassNoLockCalls"`
	LinkedClasses                     int   `jvm:"linkedClasses"`
	LoadInstanceClassFailRate         int   `jvm:"loadInstanceClassFailRate"`
	LoadedBytes                       int64 `jvm:"loadedBytes"`
	LookupSysClassTime                int64 `jvm:"lookupSysClassTime"`
	MethodBytes                       int64 `jvm:"methodBytes"`
	NonSystemLoaderLockContentionRate int   `jvm:"nonSystemLoaderLockContentionRate"`
	ParseClassTime                    int64 `jvm:"parseClassTime"`
	ParseClassTimeSelf                int64 `jvm:"parseClassTime.self"`
	SharedClassLoadTime               int64 `jvm:"sharedClassLoadTime"`
	SharedLoadedBytes                 int64 `jvm:"sharedLoadedBytes"`
	SharedUnloadedBytes               int64 `jvm:"sharedUnloadedBytes"`
	SysClassBytes                     int64 `jvm:"sysClassBytes"`
	SysClassLoadTime                  int64 `jvm:"sysClassLoadTime"`
	SystemLoaderLockContentionRate    int   `jvm:"systemLoaderLockContentionRate"`
	Time                              int64 `jvm:"time"`
	UnloadedBytes                     int64 `jvm:"unloadedBytes"`
	UnsafeDefineClassCalls            int   `jvm:"unsafeDefineClassCalls"`
	VerifiedClasses                   int   `jvm:"verifiedClasses"`
}

func (*JvmStatsCls) ParseJava

func (c *JvmStatsCls) ParseJava(m map[string]interface{}) error

func (*JvmStatsCls) ParseSun

func (c *JvmStatsCls) ParseSun(m map[string]interface{}) error

type JvmStatsGc

type JvmStatsGc struct {
	Cause                string                         `jvm:"cause"`
	LastCause            string                         `jvm:"lastCause"`
	Generations          []JvmStatsGcGeneration         `jvm:"generations"`
	Collectors           []JvmStatsGcCollector          `jvm:"collectors"`
	CompressedClassSpace JvmStatsGcCompressedClassSpace `jvm:"compressedclassspace"`
	MetaSpace            JvmStatsGcMetaSpace            `jvm:"metaspace"`
	Tlab                 JvmStatsGcTlab                 `jvm:"tlab"`
	Policy               JvmStatsGcPolicy               `jvm:"policy"`
}

func (*JvmStatsGc) Parse

func (gc *JvmStatsGc) Parse(perf map[string]interface{}) error

type JvmStatsGcCollector

type JvmStatsGcCollector struct {
	Invocations   int64  `jvm:"invocations"`
	LastEntryTime int64  `jvm:"lastEntryTime"`
	LastExitTime  int64  `jvm:"lastExitTime"`
	Name          string `jvm:"name"`
	Time          int64  `jvm:"time"`
}

func (*JvmStatsGcCollector) Parse

func (c *JvmStatsGcCollector) Parse(p map[string]interface{}) error

type JvmStatsGcCompressedClassSpace

type JvmStatsGcCompressedClassSpace struct {
	Capacity    int64 `jvm:"capacity"`
	MaxCapacity int64 `jvm:"maxCapacity"`
	MinCapacity int64 `jvm:"minCapacity"`
	Used        int64 `jvm:"used"`
}

func (*JvmStatsGcCompressedClassSpace) Parse

func (s *JvmStatsGcCompressedClassSpace) Parse(m map[string]interface{}) error

type JvmStatsGcGeneration

type JvmStatsGcGeneration struct {
	AgeTableSize  int32                       `jvm:"ageTableSize"`
	AgeTableBytes []int64                     `jvm:"ageTableBytes,omitempty"`
	Capacity      int64                       `jvm:"capacity"`
	MaxCapacity   int64                       `jvm:"maxCapacity"`
	MinCapacity   int64                       `jvm:"minCapacity"`
	Name          string                      `jvm:"name"`
	Spaces        []JvmStatsGcGenerationSpace `jvm:"spaces"`
}

func (*JvmStatsGcGeneration) Parse

func (g *JvmStatsGcGeneration) Parse(p map[string]interface{}) error

type JvmStatsGcGenerationSpace

type JvmStatsGcGenerationSpace struct {
	Capacity     int64  `jvm:"capacity"`
	InitCapacity int64  `jvm:"initCapacity"`
	MaxCapacity  int64  `jvm:"maxCapacity"`
	Name         string `jvm:"name"`
	Used         int64  `jvm:"used"`
}

func (*JvmStatsGcGenerationSpace) Parse

func (s *JvmStatsGcGenerationSpace) Parse(m map[string]interface{}) error

type JvmStatsGcMetaSpace

type JvmStatsGcMetaSpace struct {
	Capacity    int64 `jvm:"capacity"`
	MaxCapacity int64 `jvm:"maxCapacity"`
	MinCapacity int64 `jvm:"minCapacity"`
	Used        int64 `jvm:"used"`
}

func (*JvmStatsGcMetaSpace) Parse

func (s *JvmStatsGcMetaSpace) Parse(m map[string]interface{}) error

type JvmStatsGcPolicy

type JvmStatsGcPolicy struct {
	Collectors           int    `jvm:"collectors"`
	DesiredSurvivorSize  int64  `jvm:"desiredSurvivorSize"`
	Generations          int    `jvm:"generations"`
	MaxTenuringThreshold int    `jvm:"maxTenuringThreshold"`
	Name                 string `jvm:"name"`
	TenuringThreshold    int    `jvm:"tenuringThreshold"`
}

func (*JvmStatsGcPolicy) Parse

func (p *JvmStatsGcPolicy) Parse(perf map[string]interface{}) error

type JvmStatsGcTlab

type JvmStatsGcTlab struct {
	Alloc        int `jvm:"alloc"`
	AllocThreads int `jvm:"allocThreads"`
	FastWaste    int `jvm:"fastWaste"`
	Fills        int `jvm:"fills"`
	GcWaste      int `jvm:"gcWaste"`
	MaxFastWaste int `jvm:"maxFastWaste"`
	MaxFills     int `jvm:"maxFills"`
	MaxGcWaste   int `jvm:"maxGcWaste"`
	MaxSlowAlloc int `jvm:"maxSlowAllow"`
	SlowAlloc    int `jvm:"slowAlloc"`
	SlowWaste    int `jvm:"slowWaste"`
}

func (*JvmStatsGcTlab) Parse

func (s *JvmStatsGcTlab) Parse(m map[string]interface{}) error

type JvmStatsJavaThreads

type JvmStatsJavaThreads struct {
	Daemon   int `jvm:"daemon"`
	Live     int `jvm:"live"`
	LivePeak int `jvm:"livePeak"`
	Started  int `jvm:"started"`
}

func (*JvmStatsJavaThreads) Parse

func (t *JvmStatsJavaThreads) Parse(m map[string]interface{}) error

type JvmStatsOs

type JvmStatsOs struct {
	Hrt JvmStatsOsHrt `jvm:"hrt"`
}

func (*JvmStatsOs) Parse

func (o *JvmStatsOs) Parse(m map[string]interface{}) error

type JvmStatsOsHrt

type JvmStatsOsHrt struct {
	Frequency int64 `jvm:"frequency"`
	Ticks     int64 `jvm:"ticks"`
}

type JvmStatsRt

type JvmStatsRt struct {
	SyncContentedLockAttempts int    `jvm:"_sync_ContendedLockAttempts"`
	SyncDeflations            int    `jvm:"_sync_Deflations"`
	SyncEmptyNotifications    int    `jvm:"_sync_emptyNotifications"`
	SyncFailedSpins           int    `jvm:"_sync_FailedSpins"`
	SyncFutileWakeups         int    `jvm:"_sync_FutileWakeups"`
	SyncInflations            int    `jvm:"_sync_Inflations"`
	SyncMonExtant             int    `jvm:"_sync_MonExtant"`
	SyncMonInCirculation      int    `jvm:"_sync_MonInCirculation"`
	SyncMonScavenged          int    `jvm:"_sync_MonScavenged"`
	SyncNotifications         int    `jvm:"_sync_Notifications"`
	SyncParks                 int    `jvm:"_sync_Parks"`
	SyncPrivateA              int    `jvm:"_sync_PrivateA"`
	SyncPrivateB              int    `jvm:"_sync_PrivateB"`
	SyncSlowEnter             int    `jvm:"_sync_SlowEnter"`
	SyncSlowExit              int    `jvm:"_sync_SlowExit"`
	SyncSlowNotify            int    `jvm:"_sync_SlowNotify"`
	SyncSlowNotifyAll         int    `jvm:"_sync_SlowNotifyAll"`
	SyncSuccessfulSpins       int    `jvm:"_sync_SuccessfulSpins"`
	ApplicationTime           int64  `jvm:"applicationTime"`
	CreateVmBeginTime         int64  `jvm:"CreateVmBeginTime"`
	CreateVmEndTime           int64  `jvm:"CreateVmEndTime"`
	InternalVersion           string `jvm:"internalVersion"`
	InterruptedBeforeIO       int    `jvm:"interruptedBeforeIO"`
	InterruptedDuringIO       int    `jvm:"interruptedDuringIO"`
	JavaCommand               string `jvm:"javaCommand"`
	JvmCapabilities           string `jvm:"jvmCapabilities"`
	JvmVersion                int    `jvm:"jvmVersion"`
	SafePointSyncTime         int64  `jvm:"safepointSyncTime"`
	SafePointTime             int64  `jvm:"safepointTime"`
	SafePoints                int64  `jvm:"safepoints"`
	ThreadInterruptSignaled   int    `jvm:"threadInterruptSignaled"`
	VmInitDoneTime            int64  `jvm:"vmInitDoneTime"`
}

func (*JvmStatsRt) Parse

func (r *JvmStatsRt) Parse(m map[string]interface{}) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL