An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 2.3% on proxy.golang.org
Top 0.1% dependent packages on proxy.golang.org
Top 0.2% dependent repos on proxy.golang.org
Top 5.7% forks on proxy.golang.org
Top 0.3% docker downloads on proxy.golang.org

proxy.golang.org : github.com/raulk/go-watchdog

Package watchdog runs a singleton memory watchdog in the process, which watches memory utilization and forces Go GC in accordance with a user-defined policy. There three kinds of watchdogs: The watchdog's behaviour is controlled by the policy, a pluggable function that determines when to trigger GC based on the current utilization. This library ships with two policies: You can easily write a custom policy tailored to the allocation patterns of your program. The recommended way to set up the watchdog is as follows, in descending order of precedence. This logic assumes that the library supports setting a heap limit through an environment variable (e.g. MYAPP_HEAP_MAX) or config key.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/raulk/go-watchdog
License: Apache-2.0,MIT
Latest release: almost 3 years ago
First release: over 4 years ago
Namespace: github.com/raulk
Dependent packages: 1,062
Dependent repositories: 1,371
Stars: 75 on GitHub
Forks: 14 on GitHub
Docker dependents: 126
Docker downloads: 64,950,580
See more repository details: repos.ecosyste.ms
Last synced: 14 days ago

    Loading...
    Readme
    Loading...