Skip to main content

JvmStatistics

Struct JvmStatistics 

Source
pub struct JvmStatistics {
Show 19 fields pub heap_initial: u64, pub heap_used: u64, pub heap_committed: u64, pub heap_max: u64, pub non_heap_initial: u64, pub non_heap_used: u64, pub non_heap_committed: u64, pub non_heap_max: u64, pub gc_count: u32, pub gc_time: u32, pub classes_loaded: u32, pub classes_total: u32, pub classes_unloaded: u32, pub compilation_time: u32, pub thread_num_live: u32, pub thread_num_daemon: u32, pub thread_num_started: u32, pub fd_open_count: u32, pub fd_max_count: u32,
}
Expand description

JVM Statistics - Format (0,2106)

Java Virtual Machine performance statistics

§XDR Definition (sFlow JVM)

/* JVM Statistics */
/* See MemoryMXBean, GarbageCollectorMXBean, ClassLoadingMXBean, */
/* CompilationMXBean, ThreadMXBean and UnixOperatingSystemMXBean */
/* opaque = counter_data; enterprise = 0; format = 2106 */

struct jvm_statistics {
  unsigned hyper heap_initial;    /* initial heap memory requested */
  unsigned hyper heap_used;       /* current heap memory usage  */
  unsigned hyper heap_committed;  /* heap memory currently committed */
  unsigned hyper heap_max;        /* max heap space */
  unsigned hyper non_heap_initial; /* initial non heap memory
                                      requested */
  unsigned hyper non_heap_used;   /* current non heap memory usage  */
  unsigned hyper non_heap_committed; /* non heap memory currently
                                        committed */
  unsigned hyper non_heap_max;    /* max non-heap space */
  unsigned int gc_count;          /* total number of collections that
                                     have occurred */
  unsigned int gc_time;           /* approximate accumulated collection
                                     elapsed time in milliseconds */
  unsigned int classes_loaded;    /* number of classes currently loaded
                                     in vm */
  unsigned int classes_total;     /* total number of classes loaded
                                     since vm started */
  unsigned int classes_unloaded;  /* total number of classe unloaded
                                     since vm started */
  unsigned int compilation_time;  /* total accumulated time spent in
                                     compilation (in milliseconds) */
  unsigned int thread_num_live;   /* current number of live threads */
  unsigned int thread_num_daemon; /* current number of live daemon
                                     threads */
  unsigned int thread_num_started; /* total threads started since
                                      vm started */
  unsigned int fd_open_count;     /* number of open file descriptors */
  unsigned int fd_max_count;      /* max number of file descriptors */
}

Fields§

§heap_initial: u64

Initial heap memory requested

§heap_used: u64

Current heap memory usage

§heap_committed: u64

Heap memory currently committed

§heap_max: u64

Maximum heap space

§non_heap_initial: u64

Initial non-heap memory requested

§non_heap_used: u64

Current non-heap memory usage

§non_heap_committed: u64

Non-heap memory currently committed

§non_heap_max: u64

Maximum non-heap space

§gc_count: u32

Total number of garbage collections that have occurred

§gc_time: u32

Approximate accumulated collection elapsed time in milliseconds

§classes_loaded: u32

Number of classes currently loaded in VM

§classes_total: u32

Total number of classes loaded since VM started

§classes_unloaded: u32

Total number of classes unloaded since VM started

§compilation_time: u32

Total accumulated time spent in compilation (in milliseconds)

§thread_num_live: u32

Current number of live threads

§thread_num_daemon: u32

Current number of live daemon threads

§thread_num_started: u32

Total threads started since VM started

§fd_open_count: u32

Number of open file descriptors

§fd_max_count: u32

Maximum number of file descriptors

Trait Implementations§

Source§

impl Clone for JvmStatistics

Source§

fn clone(&self) -> JvmStatistics

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for JvmStatistics

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for JvmStatistics

Source§

impl PartialEq for JvmStatistics

Source§

fn eq(&self, other: &JvmStatistics) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for JvmStatistics

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.