raulk / go-watchdog

a library to curb OOMs by running Go GC according to a user-defined policy.
Other
80 stars 15 forks source link

implement automatic heapdumps when usage is above threshold. #8

Closed raulk closed 3 years ago

raulk commented 3 years ago

A heapdump will be captured when the usage trespasses the threshold. Staying above the threshold won't trigger another heapdump. If the usage goes down, then back up, that is considered another "episode" to be captured in a heapdump.

This feature is driven by three parameters: