Class ArrayByteBufferPool.Tracking

java.lang.Object
org.eclipse.jetty.io.ArrayByteBufferPool
org.eclipse.jetty.io.ArrayByteBufferPool.Tracking
All Implemented Interfaces:
ByteBufferPool, Dumpable
Enclosing class:
ArrayByteBufferPool

public static class ArrayByteBufferPool.Tracking extends ArrayByteBufferPool

A variant of ArrayByteBufferPool that tracks buffer acquires/releases, useful to identify buffer leaks.

Use getLeaks() when the system is idle to get the ArrayByteBufferPool.Tracking.Buffers that have been leaked, which contain the stack trace information of where the buffer was acquired.

  • Constructor Details

    • Tracking

      public Tracking()
    • Tracking

      public Tracking(int minCapacity, int maxCapacity, int maxBucketSize)
    • Tracking

      public Tracking(int minCapacity, int maxCapacity, int maxBucketSize, long maxHeapMemory, long maxDirectMemory)
  • Method Details