Skip to content
This repository was archived by the owner on Jan 29, 2024. It is now read-only.
This repository was archived by the owner on Jan 29, 2024. It is now read-only.

Optimizing wireguard_exporter for Low-Memory Devices #26

@vzavalskyi

Description

@vzavalskyi

Hello @mdlayher,

I recently built wireguard_exporter for my OpenWrt router, while everything else is working well, I noticed that it's consuming a high amount of RAM (at least for Low-Memory devices).
I was wondering if you could help me identify the root cause of this issue.

I appreciate the effort you put into developing this tool, and I'm hoping that you could help me come up with ideas to resolve this problem. Please let me know if you require any further information from my side to help you better understand the problem.

From top (while VSZ as high as 594m, the actual RAM usage around 12m).

  PID  PPID USER     STAT   VSZ %VSZ %CPU COMMAND
 1712     1 root     S     594m 241%   0% /usr/share/WG_exporter/wireguard_exporter -wireguard.peer-file /usr/share/WG_exporter/peers.toml

Thank you for your time and assistance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions