Skip to content

hledger-ui --watch consumes more CPU and RAM over time [$150 x 3] #1825

@simonmichael

Description

@simonmichael

An idle hledger-ui with --watch, left running for days, may show gradually increasing CPU usage - 1%, 2%, 3%, 4%... - and RAM usage.
I have always seen this on mac, and @the-solipsist sees it on ubuntu gnu/linux. I believe it is more apparent when you have a lot of accounts / transactions. I seem to remember, or I have assumed, that it's a problem with the underlying C file-watching library (which might be different on each platform). As a workaround, you can occasionally quit and restart hledger-ui (q, C-p, enter), or suspend and resume it when not in use (C-z, fg, enter). It's quite unfortunate.


See also

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-BUGSomething wrong, confusing or sub-standard in the software, docs, or user experience.affects4-manyAffects potentially a significant number of users.annoyance4-majorMajor usability/doc bug, or any regression or crash.bountyThar's some kind o' loot on offer..needs-debuggingTo unblock: needs debugging/investigationperformanceAnything performance-related (run time, memory usage, disk space..)platform-linuxplatform-macplatform-windowsuiThe hledger-ui tool.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions