Skip to content

hls consumes extreme amounts of memory on comparatively small application #3786

@MangoIV

Description

@MangoIV

Your environment

Which OS do you use?
NixOS 23.11

Which version of GHC do you use and how did you install it?
9.4.6 nix package manager

How is your project built (alternative: link to the project)?
cabal

Which LSP client (editor/plugin) do you use?

neovim
Which version of HLS do you use and how did you install it?

2.0.0.1 nix package manger
Have you configured HLS in any way (especially: a hie.yaml file)?
no

Steps to reproduce

  • hard to reproduce, occurs after working a while on a file, the repo is also not open source yet, it might be related to the dependency on package stripeapi which has a very large amount of symbols.

Expected behaviour

consume reasonable amounts of memory (16, hell 20 gb would be fine)

Actual behaviour

memory runs full then at some point my computer just hangs until I get a GC (I guess that's what happens) and I get normal amounts of memory (the yellow line is SWAP)

image

Debug information

I'm reporting this because I think this is a novel issue, I have never experienced this. It could also be related to the stripeapi package having a really high amount of symbols.

Metadata

Metadata

Assignees

No one assigned

    Labels

    performanceIssues about memory consumption, responsiveness, etc.status: needs infoNot actionable, because there's missing informationtype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions