jupyterlab-topbar icon indicating copy to clipboard operation
jupyterlab-topbar copied to clipboard

Memory tab shown as 0 after installing system monitor extension

Open felihong opened this issue 5 years ago • 5 comments

Hi there,

thanks for the lovely extensions. I installed the monitor extension as described in the doc:

jupyter labextension install jupyterlab-system-monitor
pip install nbresuse

However the memory tab surfaced remains 0: Screenshot 2020-02-05 at 13 32 15

Some environments:

  • JupyterLab 1.2.5
  • Notebook 6.0.3
  • Python 3.7.6

Any ideas? Thanks.

felihong avatar Feb 05 '20 12:02 felihong

@Felihong is this still happening after configuring nbresuse?

https://github.com/jtpio/jupyterlab-system-monitor#configuration

jtpio avatar Feb 07 '20 16:02 jtpio

Hi @jtpio , thanks for your reply.

I edited the ~/.jupyter/jupyter_notebook_config.py by adding:

c.NotebookApp.ResourceUseDisplay.mem_limit = Size_of_GB *1024*1024*1024

but the memory remains as before. And this happens in my notebook container running a GKE pod. However in my personal Mac the temporal memory usage is well presented which makes me confused.

felihong avatar Feb 13 '20 10:02 felihong

Was the file edited after the pod was started? Or is it mounted as a volume?

This would otherwise require a restart of the server.

jtpio avatar Feb 14 '20 10:02 jtpio

Yes I modified the config file after the server was launched:

cat jupyter_notebook_config.py| grep "mem_limit"
c.NotebookApp.ResourceUseDisplay.mem_limit = '0.1*1024*1024*1024'

Is a restart still required in this case?

felihong avatar Feb 14 '20 12:02 felihong

Yes. The other way would be to specify the mem_limit on the spawner (assuming the GKE pod is started with ZTJH), and nbresuse would pick it up: https://github.com/yuvipanda/nbresuse#memory-limit

But even without setting the limit there should be some value:

image

jtpio avatar Feb 14 '20 14:02 jtpio

Closing as this should be addressed in the jupyter-resource-usage repo, maybe as part of https://github.com/jupyter-server/jupyter-resource-usage/issues/191.

jtpio avatar Jul 25 '23 09:07 jtpio