TabNine icon indicating copy to clipboard operation
TabNine copied to clipboard

[JetBrains IDE/JavaScript] Horrible performance issues when using the plugin

Open NorteX-dev opened this issue 4 years ago • 7 comments

  • OS version: Windows 10 (10.0.18362.959)
  • Editor: JetBrains WebStorm, same family as IntelliJ
  • Editor version: 2020.1.3
  • Programming language JS (both Node and classic), HTML (+ CSS), EJS
  • TabNine extension version: 0.1.1

Issue Details: The plugin gives terrible performance issues with the IDE. Every 5-ish words, the IDE goes "No Response". It also hangs a lot of the times when typing, effectively slowing me down instead of speeding me up. Without the plugin, the WebStorm process uses about 0% - 1% of the CPU usage, while WITH the plugin installed, 40% - 50% making the whole CPU work on 100%. Because of that, I had to uninstall the extension until I can find a solution to this problem, as this makes the IDE unusable.

NorteX-dev avatar Aug 03 '20 12:08 NorteX-dev

hi @NorteX-dev,

Thanks for reaching out, In order to investigate this, we could use additional info: Does the CPU level still raising when you're not typing? or does it level down? Do you mind sharing your IDE logs, for us to investigate? What CPU do you have on your machine? What RAM?

Can you try and disable the local deep learning model, and see if this changes CPU consumption? (you can enter the config by typing TabNine::config , and then uncheck the checkbox at Deep TabNine Local -> Enable TabNine Local)

Thanks!

yanir-codota avatar Aug 05 '20 12:08 yanir-codota

Hi @NorteX-dev - does your project have a .gitignore file? And all the relevant folders are excluded (module_module, bower, etc.)?

dimacodota avatar Aug 06 '20 06:08 dimacodota

First off, thanks for both responses and sorry for my long response times. @yanir-codota After further investigating, I found out that the CPU level raises only when I'm typing and immediately relaxes when I'm not typing. I'm using an i5-6400 with DDR4 16 GB memory. I see no other problems anywhere with this setup (especially when coding), so I suppose the specs can't be a problem. I couldn't find the exact setting for deep learning, but I assume it's this: image I have disabled it, and yet, nothing changed, except the TabNine suggestions didn't appear anymore (so I had high CPU usage + no suggestions anymore) These are the logs as wanted. There are some errors and things, and a bunch of spam from other extensions... idea.log @dimacodota Yes, I do, and it contains the node_modules folder. So I don't think TabNine should be still indexing these.

Edit: I'm going to use the extension when I'm coding now, so I can get more information on the topic.

NorteX-dev avatar Aug 09 '20 19:08 NorteX-dev

hi @NorteX-dev , Thanks for the logs, and all your inputs,

The TabNine plugin is spawning a subprocess in the name of 'TabNine.exe'.
Just to make sure we follow the right path here, Can try and figure out which of the processes is raising the CPU consumption when you experience this issue (the TabNine subprocess or the webStorm process itself)?

Thanks!

shtutman avatar Aug 10 '20 08:08 shtutman

WebStorm process itself, but only with TabNine installed. It's not as intense now as back when I created the issue but it's still obvious and obnoxious.

NorteX-dev avatar Aug 11 '20 12:08 NorteX-dev

@NorteX-dev, can you please send us your configuration file? type TabNine::cfg in your editor to locate it. Thanks

dimacodota avatar Sep 10 '20 06:09 dimacodota

@dimacodota I have the same issue as NorteX-dev on 10 Aug 2020. Unnamed process with Webstorm icon uses 6-8% of CPU.

Screenshot with TabNine plugin enabled and Webstorm is idle image

If I disable TabNine plugin, it still use CPU. If I kill WD-TabNine.exe and both of TabNine.exe processes it still use CPU until Webstorm restarted.

Screenshot with killed tabnine processes and disabled TN plugin image

Microsoft Windows [Version 10.0.19043.1586]

WebStorm 2021.2.3

Build #WS-212.5457.55, built on October 18, 2021

Runtime version: 11.0.12+7-b1504.40 amd64

VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.

Memory: 4000M

Cores: 8

Non-Bundled Plugins: Key Promoter X (2021.3), String Manipulation (9.4.0), com.tabnine.TabNine (0.5.23), Pomodoro-tm (0.70), com.wakatime.intellij.plugin (13.1.14), net.vektah.codeglance2 (1.5.5), wallaby.js (1.0.237), de.cmm.side_nodes (1.2), quokka.js (1.0.328), ru.adelf.idea.dotenv (2022.1)

Plugin Version: 0.5.23

Engine Version: 4.1.22-47

tabnine_config.json { "version": "4.1.3", "hide_promotional_message": false, "beta_enabled": "No", "ignore_all_lsp": false, "creation_time": "2022-02-23T00:24:46.715330300Z", "guuid": "a8a7cd142cda32cf08efd1029b33a7bd33f609042c649969af166fa61aea7f9a", "semantic_status": {}, "enable_telemetry": false, "user_understands_that_enabling_tabnine_cloud_sends_code_to_tabnine_servers": true, "hosted_deep_completions_enabled": "Disabled", "tabnine_cloud_host": null, "tabnine_cloud_certificate_domain": null, "tabnine_cloud_port": null, "cloud_whitelist": [], "num_of_suggestions": 5, "line_suggestions": true, "omit_prefix_suggestions": false, "api_key": null, "api_base_url": null, "binary_update_interval_seconds": null, "local_enabled": "Unset", "disable_local_when_using_battery": false, "hide_deep_information_message": false, "enable_power_saving_mode": true, "rate_limit_interval_seconds": null, "rate_limit_amount": null, "generation": 47, "local_model_size": "Small", "model_hash_override": null, "local_indexing": null, "heartbeat_interval_seconds": null, "last_service_level": null, "override_beams": null, "override_context_length": null, "onboarding": { "model_type": null, "skipped_login": false, "completed": false }, "has_git_repos": true, "gusr": { "dgc": "a8a7cd142cda32cf08efd1029b33a7bd33f609042c649969af166fa61aea7f9a" }, "exclude_file_masks": null, "inline_suggestions_mode": false, "use_specialized_model_if_available": false, "empty_line_suggestions": false, "snippets_enabled_v2": null }

Fodin avatar Mar 23 '22 23:03 Fodin

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 03 '22 08:10 stale[bot]