Class SlowRequestChecker

java.lang.Object
java.util.TimerTask
hudson.triggers.SafeTimerTask
hudson.model.PeriodicWork
com.cloudbees.jenkins.support.slowrequest.SlowRequestChecker
All Implemented Interfaces:
ExtensionPoint, Runnable

@Extension public class SlowRequestChecker extends PeriodicWork
Run periodically to find slow requests and track them.
Author:
Kohsuke Kawaguchi
  • Field Details

    • RECURRENCE_PERIOD_SEC

      public static final int RECURRENCE_PERIOD_SEC
      How often to run the slow request checker
      Since:
      2.12
    • THRESHOLD

      public static final int THRESHOLD
      Time in milliseconds that's considered too slow for requests. Starting with a bit conservative value to catch serious offenders first. If this value is less than twice RECURRENCE_PERIOD_SEC then that will be used instead.
    • DISABLED

      public static volatile boolean DISABLED
      Provide a means to disable the slow request checker. This is a volatile non-final field as if you run into issues in a running Jenkins you may need to disable without restarting Jenkins.
      Since:
      2.12
  • Constructor Details

    • SlowRequestChecker

      public SlowRequestChecker()
  • Method Details