Skip to content

Optimize Gogadget and Objdump services #145

@ms-xy

Description

@ms-xy

Currently we employ the ugly "hack" of using debug.FreeOSMemory() to force a GC run after every request. However, without that "hack" our memory consumption will lead to OOM situations.
Additionally we may have sometimes got some artifacts not properly freed and returned to the OS.

Goal: Remove debug dependency and ensure normal GC runs actually pick up the memory, somehow, and in a timely manner (if possible).
Get rid of any orphaned artifacts in the memory. (If they indeed are persistent as pprof suggests)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions