edgafner / dorkag

Issue Tracker repository for all Dorkag plugins
Other
5 stars 0 forks source link

[BUG]: Very bad performance and huge memory usages #63

Closed ricardoboss closed 3 months ago

ricardoboss commented 5 months ago

Describe the bug When the azd plugin is activated, Rider uses huge amounts of memory and the performance it terrible to the point where the IDE is unusable.

To Reproduce Steps to reproduce the behavior:

  1. Install azd
  2. Restart Rider
  3. Try editing files, cursor lags behind, memory indicator shows 4GB (90%) usage.

Expected behavior No lags, as low as 200MB memory usage.

Desktop (please complete the following information): MacBook Air M2, 2022 macOS 14.2.1

JetBrains IDE

JetBrains Rider 2023.3.3
Build #RD-233.14015.60, built on January 18, 2024
Licensed to Ricardo Boss
Subscription is active until xxxxxx.
Runtime version: 17.0.9+7-b1087.11 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 14.2.1
.NET Core v7.0.10 ARM64 (Server GC)
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 8
Metal Rendering is ON
Registry:
  ide.instant.shutdown=false
  editor.config.csharp.support=true
  external.system.auto.import.disabled=true
  ide.experimental.ui=true
  ide.text.editor.with.preview.show.floating.toolbar=false
  git.show.recent.checkout.branches=0
Non-Bundled Plugins:
  SerialPortMonitor (233.14015.147)
  PsiViewer (233.2)
  com.github.catppuccin.jetbrains_icons (1.2.0)
  com.intellij.ideolog (222.3.1.0)
  org.antlr.intellij.plugin (1.23)
  cognitivecomplexity-rider (2023.3.0)
  DevKit (233.14015.117)
  lermitage.intellij.extratci (1.32.0)
  com.intellij.resharper.HeapAllocationsViewer (2023.3.0)
  Key Promoter X (2023.3.0)
  org.jetbrains.idea.grammar (2022.3.2)
  com.intellij.plugin.adernov.powershell (2.3.1)
  com.nasller.CodeGlancePro (1.8.0)
  com.intellij.mermaid (0.0.19+IJ.232)
  org.toml.lang (233.13135.67)
  CyclomaticComplexity (2023.3.0)
  com.wakatime.intellij.plugin (14.3.11)
  name.kropp.intellij.makefile (233.13135.65)
  com.intellij.resharper.StructuredLogging (2023.3.2.321)
  ru.adelf.idea.dotenv (2024.1)
  tanvd.grazi (233.13135.14)
  com.dsoftware.ghtoolbar (1.16.0)
  Dart (233.13763.5)
  de.timo_reymann.intellij-mjml-support (3.3.0)
  org.exbin.deltahex.intellij (0.2.9)
  com.github.dinbtechit.vscodetheme (1.10.10)
  com.github.copilot (1.4.14.4554)
  com.gafner.azd (2024.1.27)
  zielu.gittoolbox (500.1.10+222)
  mobi.hsz.idea.gitignore (4.5.2)
  org.jetbrains.advocates.rider.plugins.dotnetwatch (2023.3.5)
  com.nekofar.milad.intellij.nuxtjs (2.0.10)
  tv.twelvetone.intellij.plugins.intellivue (1.1.47)

Azure Devops organization details: Azure DevOps 2022 on premise.

Jonatha1983 commented 5 months ago

Hi @ricardoboss thanks for reporting.

Are you sure is the AZD plugin? When you remove it the rider is working faster?

Any chance you attach a thread dump of rider with the plugin installed?

Thanks 🙏🏻

ricardoboss commented 5 months ago

Hi, yeah it's definitely azd. I found out by disabling them one by one.

I created this backend thread dump: 2024-02-16_21-33-56.532.tdump.zip

Let me know if you need more dumps.

ricardoboss commented 5 months ago

This might also help: a thread dump with only azd and the required plugins enabled: 2024-02-16_21-40-35.158.tdump.zip

Jonatha1983 commented 5 months ago

Hi, I checked both zip files and couldn't find the point from where to start the investigation.

I opened my Rider project ( almost empty just for the plugin's purpose) and could navigate between the plugin and the editor with no memory consumption.

If you can, please provide me more details or take a thread dump when the Rider starts its high mem consumption.

I will keep trying to reproduce in any case.

ricardoboss commented 5 months ago

I have activated the memory indicator and as soon as I open a project, it shoots up to the memory limit. That is, unless I deactivate azd 🤷

I noticed this problem only on mac. On Windows, everything is fine. Might that be the problem?

Jonatha1983 commented 5 months ago

I am using a Mac M2 so I guess not related.

Is it the same repo?

If it is as soon as you open the Rider it is related to the detection of the repo I guess. I ll try to look in that area.

Jonatha1983 commented 5 months ago

@ricardoboss Is your repo a multi module repo? Bare repo?

Any chance you have another repo to test if it is a global issue or something specific to that repo (with rider) ?

ricardoboss commented 5 months ago

It's not specific for the project. It happens with any project

Jonatha1983 commented 3 months ago

Hi @ricardoboss

Sorry for the huge delay, but I had some other tasks including a huge refactoring for the upcoming IDE release.

Are you still facing this issue?

If yes does your organization contains a large number of repositories? Or users? If possible try to provide me some more details that can give me a good starting point to investigate.

Thanks and again sorry about the delay.

ricardoboss commented 3 months ago

Hi and thanks for taking the time. I have been using the EAP version of Rider for the last few weeks and haven't had any performance issues while using azd. Even after switching back to the stable version. Maybe it was a Rider bug then? idk... in any case, I will monitor performance in the upcoming IDE and plugin versions. I consider this issue closed as of now