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

v3 Plugin becomes very slow and even lags on large schema #497

Open
kevinmu opened this issue Mar 30, 2021 · 7 comments
Open

v3 Plugin becomes very slow and even lags on large schema #497

kevinmu opened this issue Mar 30, 2021 · 7 comments
Labels

Comments

@kevinmu
Copy link

kevinmu commented Mar 30, 2021

Intended outcome:
In the previous version of the Apollo Client Devtools Chrome plugin (I guess v2?), I could type and run queries pretty quickly; there was no visible lag. Of course the introspection query did take some time to populate, but that was okay. Auto-suggestions worked quickly.

Actual outcome:
In this new version, even typing queries into the workspace becomes a challenge. Constant lagging (registering my keystrokes a second or two after I enter them), sometimes even freezing the Chrome window I'm working in.

How to reproduce the issue:
Happens every time I try to use the devtools. I am working with a fairly large schema (schema.json is 6.5MB for reference), but it was working fine before the upgrade to v3.

Desktop (please complete the following information):

  • OS: Ubuntu 18.04
  • Browser: Chrome
  • Browser version: Chrome Version 89.0.4389.90 (Official Build) (64-bit)
  • Extension version: 3.0.2
@hwillson
Copy link
Member

hwillson commented May 2, 2021

@kevinmu can you try with 3.0.5 and let us know if this is still happening? Thanks!

@hwillson hwillson added the 🏓 awaiting-contributor-response requires input from a contributor label May 2, 2021
@alechartung
Copy link

alechartung commented May 7, 2021

I'm having this as well on 3.0.5 with Firefox, as are my teammates on their platforms.

There also seems to be a memory leak, since my browser just got oomkilled because of this:

May  7 17:23:13 nyarlathotep kernel: [ 9341.066780] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/user.slice/user-1000.slice/user@1000.service,task=firefox,pid=4453,uid=1000
May  7 17:23:13 nyarlathotep kernel: [ 9341.066895] Out of memory: Killed process 4453 (firefox) total-vm:29646444kB, anon-rss:19505944kB, file-rss:0kB, shmem-rss:117612kB, UID:1000 pgtables:43808kB oom_score_adj:0
May  7 17:23:14 nyarlathotep kernel: [ 9341.628176] oom_reaper: reaped process 4453 (firefox), now anon-rss:0kB, file-rss:0kB, shmem-rss:116804kB
  • OS: Ubuntu 20.10
  • Browser: Firefox
  • Browser version: 88.0
  • Extension version: 3.0.5

For comparison, our schema.json is 21 MB.

@ararslan
Copy link

As a data point, I've observed slowness with version 3.0.5 of the extension on two setups:

  1. Ubuntu 18.04 LTS with Firefox 90.0 (so slow the computer becomes unresponsive)
  2. macOS 10.14 with Chrome 91.0

My schema is about 4.5 MB.

@hwillson hwillson removed the 🏓 awaiting-contributor-response requires input from a contributor label Aug 13, 2021
@alessbell
Copy link
Member

Since this issue was opened, a new major version of the devtools were released. If anyone has more recent info in the way of a reproduction, I'd be happy to re-open this issue, but for now I'll close it out. Thanks!

@JeffJankowski
Copy link

This is still an issue for me (v4.4.1), especially on the Cache window. There is noticeable lag when clicking elements and even hover overs. If I try to interact with the tool for more than a few minutes the Chrome debugger will crash (or force a breakpoint, which was odd).

Our schema is fairly large, though I haven't tested against a control to determine if this is relevant.

@alessbell
Copy link
Member

Reopening this since it's still occurring. Thanks for the comment, @JeffJankowski - if you're able to share the size of the schema.json you're working with it would be a useful data point to add to the ones above. Thanks!

@alessbell alessbell reopened this Feb 6, 2024
@JeffJankowski
Copy link

@alessbell Our schema.json is ~15MB

OS: Windows 10 Pro
Browser: Chrome
Browser version: 121.0.6167.140 (Official Build) (64-bit)

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

No branches or pull requests

7 participants