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

Sluggish IDE after upgrading to version 6.5.1 of plugin #909

Closed
andshape opened this issue Nov 15, 2017 · 16 comments · Fixed by #943
Closed

Sluggish IDE after upgrading to version 6.5.1 of plugin #909

andshape opened this issue Nov 15, 2017 · 16 comments · Fixed by #943

Comments

@andshape
Copy link

OS: Windows 10
IntelliJ: 2017.2.6
Elixir-plugin: 6.5.1

After upgrading to 6.5.1 from 6.1.1, IntelliJ has become quite sluggish. I've tried reinstalling the plugin to no avail. Though I noticed no sluggishness once the plugin was uninstalled. I've looked at #822 and #580 but they seem to describe a different issue than the one I am experiencing. I experience the sluggishness even for "small" .ex files (100 lines) without nested anonymous functions.

Has there been introduced new options for the plugin I should be aware of (turn off) to get back to the old performance? Or is there a way I can revert back to old version of the plugin?

@KronicDeth
Copy link
Owner

KronicDeth commented Nov 15, 2017

@andshape I'd recommend doing a bisecting install of the versions from 6.1.1 to 6.5.1 using the manual install process

  • Start in the middle at v6.4.0
    • If slow go earlier 6.3.0
      • If slow then go earlier 6.2.0
        • If slow then 6.2.0 is the problem.
        • If fast then 6.3.0 is the problem.
      • If 6.3.0 is fast then 6.4.0 is the problem.
    • If fast go later 6.5.0
      • If slow then 6.5.0 is the problem
      • If fast, then 6.5.1 is the problem

@andshape
Copy link
Author

@KronicDeth
Thanks for the quick response. I've done the bisecting install and here are the results:

  • v6.4.0 is fast (The initial indexing is also fast)
  • v6.5.0 Something is wrong with the release found in https://github.com/KronicDeth/intellij-elixir/releases the zip is only 14.4 KB and I can see that a lot of files inside the zip are missing compared to the other releases.
  • v6.5.1 is slow (The initial indexing is also extremely slow)

For now I'll use the 6.4.0 version. It seems the problem is either in v6.5.0 or v6.5.1.

If you have time to (re)create the v6.5.0 release I'll try installing that version as well.

@take-five
Copy link

I can confirm the issue. On 6.5.1 my IDE became too slow, so I had to switch to 6.4.0

@KronicDeth
Copy link
Owner

Sluggishness could be a memory difference. The JetBrains IDEs ship with a very low max-memory size of like 256MB. They can try their best to garbage collect and just get sluggish before they'll prompt you to increase the JVM memory limit.

Turn on the memory indicator

  1. Preferences > Appearance & Behaviour > Appearance
  2. Scrool to Window Options
  3. Check "Show memory indicator"

Let me know the numbers with fast vs slow versions that work for you @andshape and @take-five.

@KronicDeth
Copy link
Owner

@nshikov
Copy link

nshikov commented Dec 5, 2017

@KronicDeth I attached IDEA log file to jetbrains ticket: https://youtrack.jetbrains.com/_persistent/idea.log?file=74-472910&c=true

@KronicDeth KronicDeth added this to the v6.6.1 milestone Dec 5, 2017
@KronicDeth KronicDeth assigned KronicDeth and unassigned andshape Dec 5, 2017
@KronicDeth
Copy link
Owner

@andshape, @Kalaww, @komlanvi, @nikshik: Update to 6.7.0 and let me know if you're still seeing performance problems. If you are, then I'll reopen this because it will mean that this issue did not have the same root cause as #580.

@nshikov
Copy link

nshikov commented Dec 8, 2017

@KronicDeth thanks for the fix! I installed Elixir 6.7.0 and worked for couple of days and don't see any performance problems now. If there will be some I will report you back

@RazgrizHsu
Copy link

thanks for the fix! 6.7.0 perfect performance!

@komlanvi
Copy link

Upgraded to 6.7.0 and it solved the performance issue. Thank you!

@andshape
Copy link
Author

@KronicDeth I installed 6.7.0 and I saw that the memory usage went down with about 50 MB on average (to about 110 out of 750 available to intelliJ). However, I am sorry to say that the performance problem persists (even though it looks as if it has gotten a little better).

If I start writing a new function for example, I see the CPU usage go up to 80%.

The machine I am using has 12 GB DDR3 Memory and a i7-4500U CPU

@KronicDeth
Copy link
Owner

@andshape answer the questions in #949 (comment) to help figure out if the mix credo external annotator.

@KronicDeth
Copy link
Owner

@andshape try the new Credo configuration options in v7.0.0 and let me know if you still have sluggishness when you have credo doing less.

@take-five
Copy link

After upgrading to 7.0.0 and turning Credo annotations off, IDE became fast again. Thanks a lot, @KronicDeth !

@miquecg
Copy link

miquecg commented Jan 10, 2018

IntelliJ IDEA 2017.3.2
Elixir plugin 7.2.1

Problem is still present for me. With credo inspections disabled project indexing takes forever and IDE becomes unusable. It freezes when changing between file tabs. Clearing cache and restarting doesn't help.

@KronicDeth
Copy link
Owner

@miquecg check for errors in status bar and open a new issue. This one is closed. Any "slowness" shouldn't pile on this issue. Y'all probably don't have the same root cause, it makes no sense to group together.

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

Successfully merging a pull request may close this issue.

7 participants