Skip to content

Memory tripling daily: Remove memory leak #44

@digitalextremist

Description

@digitalextremist

Have been using Zedless for >30 days now, since #40 or so.

Main thing I notice and run into daily, other than needing to integrate LSPs better on my end somehow through configuration, is a massive memory leak. The application seems to hemorrhage resources.

This is a fundamental Zed problem originally noticed in zed-industries/zed#33165 and mentioned in the comments they deleted from me yesterday. Apparently it was not node ... but Zed itself.

There does seem to be a ceiling, or it plateaus eventually; but I end up doing a Reload Workspace by the time it gets to be totally unusable. It would likely just keep devouring memory.


During a given day, with ~10 instances running, memory usage will start at about ~600mb and everything is pretty snappy. This machine has 64gb RAM with 4gb stolen by the integrated GPU.

By the end of the day it will have doubled, or tripled... it will be hovering around 1.8gb and become sluggish. I restart Cinnamon sometimes to get the latency down, but am just delaying the inevitable need to reload the IDE workspace.

For reference, on the same machine, at the same time:

  • One GIMP instance is about 10% more and never balloons.
  • Xorg itself, about 5% more, and never balloons.
  • Element ( the super heavy Matrix client ) is about 5% below and never balloons.
  • Brave with 5 instances is about 10% below and only balloons as I add more tabs.
  • Audacity with 5 instances is about 15% below and never balloons.

Interestingly, closing one instance open reduces memory usage by literally 1mb or so, then it gets eaten right back up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions