Memory Leaks

Memory leaks in a plugin can be detected using e.g. an MRTG graph related to memory - you can use memory dump information. Enable mem dump in records.config as follows:

  1. CONFIG proxy.config.dump_mem_info_frequency INT <value>

This causes Traffic Server to dump memory information to traffic.out at <value> (intervals are in seconds). A zero value means that it is disabled.

  1. CONFIG proxy.config.res_track_memory INT <value>
  2. When enabled makes Traffic Server track memory usage (allocations and releases). This
  3. information is dumped to ``traffic.out`` when the user sends a SIGUSR1 signal or
  4. periodically when :ts:cv:`proxy.config.dump_mem_info_frequency` is enabled.
  5. ===== ======================================================================
  6. Value Description
  7. ===== ======================================================================
  8. ``0`` Memory tracking Disabled
  9. ``1`` Tracks IO Buffer Memory allocations and releases
  10. ``2`` Tracks IO Buffer Memory and OpenSSL Memory allocations and releases
  11. ===== ======================================================================