Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

csharpier accummulates memory on mac when hibernated #1483

Open
legoesbenr opened this issue Feb 16, 2025 · 2 comments
Open

csharpier accummulates memory on mac when hibernated #1483

legoesbenr opened this issue Feb 16, 2025 · 2 comments

Comments

@legoesbenr
Copy link

I'm using csharpier via Rider, but I have no idea if this is related to the extension.

Periodically cshapier's memory consumption is accummulation. It appear, somewhat, to be related to the mac being hibernated for multiple days. But sometimes it also happens over shorter time.

It appear is two ways:
The mac get very slow in responding and opening the Activity log the dotnet-charpier process has accummulated sometimes up to 27 GB of memory. Normally in one single process, but lately I have seen three processes appear occupying the same amount of memory.

Image

Selecting the process and aborting it frees the memoru and the computer is back to normal responsiveness.

Image

This has been happening for some time and other of my colleagues using Rider are experience the same. Colleagues using VSCode does not.

Mac: MacBook Pro M1 16" 2021 32GB memory
OS: Sequoia 15.3.1

Rider:
JetBrains Rider 2024.3.4
Build #RD-243.23654.126, built on January 20, 2025
Runtime version: 21.0.5+8-b631.30 aarch64 (JCEF 122.1.9)
macOS 15.3.1
.NET Core v8.0.11 ARM64 (Server GC)
Non-Bundled Plugins:
com.intellij.csharpier (2.1.0)
aws.toolkit.core (3.55-243)
com.jetbrains.space (243.23654.19)
Abc.MoqComplete.Rider (2024.1.1.1)
com.github.copilot (1.5.32-242)
aws.toolkit (3.55-243)

@valtteriluomapareto
Copy link

I'm experiencing exactly same behavior.

Mac: Macbook Pro 16" 2023 M2 32GB
OS: 15.3.1

Image

@belav
Copy link
Owner

belav commented Feb 19, 2025

Which version of csharpier is in use? My guess is that there is a memory leak in how the rider plugin handles the new csharpier server which is used by default on 0.29.0+. The code for communicating with older csharpier versions hasn't changed significantly for a while now.

There is an option "Disable CSharpier Server" that can be used to fallback to the older method of communicating. If you are on 0.29.0+ and that option fixes the problem then I believe that confirms my suspicion.

Do you have any co-workers not on Mac who are experiencing the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants