monitor

[!TIP|label:get sizer dynamically]

Closure sizer = { long size ->
  List units    = [ 'bytes', 'KB', 'MB', 'GB', 'TB', 'PB' ]
  double bits   = size
  String result = bits > 0 ? "${bits.round(2)} bytes" : '0'
  units.eachWithIndex { unit, index ->
    if ( bits < 1024 ) return
    bits   = bits / 1024
    result = "${bits.round(2)} ${units.get(index+1)}"
  }
  result
}

monitor

[!NOTE|label:references:]

monitor for controller

  • memory

  • http sessions

  • thread dumps

  • deadlock threads

  • JVM data

    • result

  • heap histogram ( dangerous )

  • heap dump ( dangerous )

  • MBean attribute value

  • stats of builds and build steps having mean time greater than severe threshold

    [!NOTE|label:by default:] By default, severe threshold = 2 x stddev of all durations and warning threshold = 1 x stddev

  • GC

  • alerts

monitor for agents

  • jvm data, memory data, deadlocked threads

  • aa

Last updated

Was this helpful?