All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.twitter.finagle.netty4.trackReferenceLeaks.scala Maven / Gradle / Ivy

There is a newer version: 24.2.0
Show newest version
package com.twitter.finagle.netty4

import com.twitter.app.GlobalFlag

/**
 * Enable reference leak tracking in netty and export a counter at finagle/netty4/reference_leaks.
 *
 * @note By default samples 1% of buffers but this rate can increased via the
 *       "io.netty.leakDetection.level" env variable.
 *
 * @see https://netty.io/wiki/reference-counted-objects.html#wiki-h3-11
 */
private object trackReferenceLeaks
    extends GlobalFlag[Boolean](
      false,
      "Enable reference leak tracking in Netty and export a counter at finagle/netty4/reference_leaks"
    )




© 2015 - 2024 Weber Informatics LLC | Privacy Policy