-
Notifications
You must be signed in to change notification settings - Fork 30
After installing this plugin, if there are many kernels running, it will become laggy #87
Comments
main thread dump:
|
$ cat ~/.jupyter/jupyter_server_config.py |
@icankeep I am having the same issue that you describe! It seems to be related to the configuration:
When I comment out this configuration everything is fine. Enabling it and launching a few kernels causes the UI to become very laggy. |
So it most likely an issue with: https://github.com/jupyter-server/jupyter-resource-usage |
Here's how I easily reproduce this issue. Create multiple notebooks with contents:
Run 4+ kernels all executing this cell. Open a terminal and (hopefully your key repeat speed is high enough) hold down a character e.g. "x" to get continuous input into the terminal. This should be very smooth, you should see characters appearing rapidly and without pause. Now relaunch the server with Repeat the process. While holding down a key in the terminal you will notice frequent lags and pauses. I think this is because the main thread is getting blocked by |
I believe it is due to this line: https://github.com/jupyter-server/jupyter-resource-usage/blob/master/jupyter_resource_usage/server_extension.py#L22 Probably best to take this issue over to that repo. |
Closing as Feel free to open a new issue on the Thanks! |
reproduce step
The text was updated successfully, but these errors were encountered: