com.neeve.server.mon
Class SrvMonHeartbeatTracer.Sys

java.lang.Object
  extended by com.neeve.server.mon.SrvMonHeartbeatTracer.Sys
Enclosing class:
SrvMonHeartbeatTracer

public static final class SrvMonHeartbeatTracer.Sys
extends Object

Handles Sys Stats for formatting and printing. System stats include stats from i ) GC stats - Heap Size and collection time ii) JIT Information iii) System Load average ii) Thread Count

[System Stats] Wed Jan 27 01:26:31 PST 2016 'oms' server (pid=11072) 2 apps (collection time=0 ns) System: 4 processors load average: -1.00 Memory: HEAP 92M init 58M used 95M commit 1.3G max NON-HEAP 23M init 38M used 39M commit 130M max Threads: 29 total (26 daemon) 30 peak JIT: HotSpot 64-Bit Tiered Compilers, time: 4075 ms [7 49 ms] [0 0 ms]


Constructor Summary
SrvMonHeartbeatTracer.Sys()
           
 
Method Summary
static void formatDiskInfoForPrint(SrvMonSysStats stats, StringBuilder sb)
          Format disk information for printing
static StringBuilder formatForPrint(long collectionStartWallTime, String serverName, String serverPid, int appCount, SrvMonSysStats stats, long collectionElapsedTime, StringBuilder sb)
          Format system info for printing as [System Stats] Wed Jan 27 01:26:31 PST 2016 'oms' server (pid=11072) 2 apps (collection time=0 ns) System: 4 processors load average: -1.00 Memory: HEAP 92M init 58M used 95M commit 1.3G max NON-HEAP 23M init 38M used 39M commit 130M max Threads: 29 total (26 daemon) 30 peak JIT: HotSpot 64-Bit Tiered Compilers, time: 4075 ms [7 49 ms] [0 0 ms]
static void formatGCInfoForPrint(SrvMonSysStats stats, StringBuilder sb)
          Format GC information for printing
static void formatGeneralInfoForPrint(long collectionStartWallTime, String serverName, String serverPid, int appCount, long collectionElapsedTime, StringBuilder sb)
          Format general information of stats for printing
static void formatJITInfoForPrint(SrvMonSysStats stats, StringBuilder sb)
          Format JIT information for printing
static void formatMemoryInfoForPrint(SrvMonSysStats stats, StringBuilder sb)
          Format memory information for printing
static void formatSystemInfoForPrint(SrvMonSysStats stats, StringBuilder sb)
          Format system information for printing
static void formatThreadInfoForPrint(SrvMonSysStats stats, StringBuilder sb)
          Format thread information for printing
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SrvMonHeartbeatTracer.Sys

public SrvMonHeartbeatTracer.Sys()
Method Detail

formatGeneralInfoForPrint

public static final void formatGeneralInfoForPrint(long collectionStartWallTime,
                                                   String serverName,
                                                   String serverPid,
                                                   int appCount,
                                                   long collectionElapsedTime,
                                                   StringBuilder sb)
Format general information of stats for printing

Parameters:
collectionStartWallTime - - The time when stats were collected
serverName - - Name of the server where starts are collected
serverPid - - PID of the process for which the stats belong
appCount - - Count of applications in one stats record
collectionElapsedTime - - Elapsed time of stats collection
sb - - Handle of String builder where all formatted stats are appended

formatSystemInfoForPrint

public static final void formatSystemInfoForPrint(SrvMonSysStats stats,
                                                  StringBuilder sb)
Format system information for printing

Parameters:
stats - - SrvMonSysStats object which contains system stats
sb - -Handle of String builder where all formatted stats are appended

formatMemoryInfoForPrint

public static final void formatMemoryInfoForPrint(SrvMonSysStats stats,
                                                  StringBuilder sb)
Format memory information for printing

Parameters:
stats - - SrvMonSysStats object from which all memory stats are read
sb - - Handle of String builder where all formatted stats are appended

formatDiskInfoForPrint

public static final void formatDiskInfoForPrint(SrvMonSysStats stats,
                                                StringBuilder sb)
Format disk information for printing


formatThreadInfoForPrint

public static final void formatThreadInfoForPrint(SrvMonSysStats stats,
                                                  StringBuilder sb)
Format thread information for printing

Parameters:
stats - - Handle of SrvMonSysStats object to read Thread counts
sb - - Handle of String builder where all formatted stats are appended

formatJITInfoForPrint

public static final void formatJITInfoForPrint(SrvMonSysStats stats,
                                               StringBuilder sb)
Format JIT information for printing

Parameters:
stats - - Handle of SrvMonSysStats to read JIT compiler stats
sb - - Handle of String builder where all formatted stats are appended

formatGCInfoForPrint

public static final void formatGCInfoForPrint(SrvMonSysStats stats,
                                              StringBuilder sb)
Format GC information for printing

Parameters:
stats - - Handle of SrvMonSysStats to read GC related stats
sb - - Handle of String builder where all formatted stats are appended

formatForPrint

public static final StringBuilder formatForPrint(long collectionStartWallTime,
                                                 String serverName,
                                                 String serverPid,
                                                 int appCount,
                                                 SrvMonSysStats stats,
                                                 long collectionElapsedTime,
                                                 StringBuilder sb)
Format system info for printing as [System Stats] Wed Jan 27 01:26:31 PST 2016 'oms' server (pid=11072) 2 apps (collection time=0 ns) System: 4 processors load average: -1.00 Memory: HEAP 92M init 58M used 95M commit 1.3G max NON-HEAP 23M init 38M used 39M commit 130M max Threads: 29 total (26 daemon) 30 peak JIT: HotSpot 64-Bit Tiered Compilers, time: 4075 ms [7 49 ms] [0 0 ms]

Parameters:
collectionStartWallTime - - The time when stats were collected
serverName - - Name of the server where starts are collected
serverPid - - PID of the process for which the stats belong
appCount - - Count of applications in one stats record
stats - - Stats object from which all system stats are read
collectionElapsedTime - - Elapsed time of stats collection
sb - - Handle of String builder to update
Returns:
- String Buider with all system stats appended


Copyright © 2016 Neeve Research, LLC. All Rights Reserved.