question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RAM or CPU show nothing

See original GitHub issue

Hello,

I’ve been trying this extensions but it seems nothing happened. I use Kubernetes for deployment. Here my versions:

jupyter-client         5.3.4              
jupyter-console        6.1.0              
jupyter-core           4.6.3              
jupyter-rsession-proxy 1.1                
jupyter-server-proxy   1.3.2              
jupyterhub             1.0.0              
jupyterlab             1.2.13             
jupyterlab-server      1.1.1              
nbresuse               0.3.4              
notebook               6.0.2              
prometheus-client      0.7.1              
psutil                 5.7.0

Some of error logs shown:

[E 2020-04-30 06:15:22.373 SingleUserLabApp ioloop:763] Exception in callback functools.partial(<bound method IOLoop._discard_future_result of <tornado.platform.asyncio.AsyncIOMainLoop object at 0x7f896ed2f668>>, <Future finished exception=AttributeError("can't set attribute",)>)
    Traceback (most recent call last):
      File "/opt/conda/lib/python3.6/site-packages/tornado/ioloop.py", line 743, in _run_callback
        ret = callback()
      File "/opt/conda/lib/python3.6/site-packages/tornado/ioloop.py", line 767, in _discard_future_result
        future.result()
      File "/opt/conda/lib/python3.6/site-packages/tornado/gen.py", line 191, in wrapper
        result = func(*args, **kwargs)
      File "/opt/conda/lib/python3.6/site-packages/nbresuse/prometheus.py", line 34, in __call__
        metrics = self.apply_memory_limits(memory_metrics())
      File "/opt/conda/lib/python3.6/site-packages/nbresuse/prometheus.py", line 49, in apply_memory_limits
        metrics.max_memory = self.config.mem_limit
    AttributeError: can't set attribute

Here the configurations that i use to spawn the notebook:

c.KubeSpawner.args = ['--disable-user-config', '--no-browser', '--allow-root',
    '--config=/etc/jupyter/jupyter_notebook_config.py',
    '--ResourceUseDisplay.track_cpu_percent=True']

Appreciate for helping. Thank you.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sundh4commented, May 4, 2020

Hi @jtpio

You are right, after upgrading Jupyterlab with version 2.1.1 and use nbresuse==0.3.3 now RAM and CPU usage are shown.

Thanks

1reaction
sundh4commented, Apr 30, 2020

So, this mean the extensions only work for Jupyterlab version 2.x.x right?

Yes, version 0.5.0 and above only support JupyterLab 2.0.

The CPU indicator was added after the update to 2.0 and will not be backported to 1.x. Most of the extensions in the list above should now be compatible with the latest JupyterLab. Is it possible to upgrade to JupyterLab 2.x on your setup?

Thanks @jtpio

I see, will try upgrade my setup with version 2.xx. I will update the result here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix a Computer That Turns on but Displays Nothing
Yes. Without RAM, your computer can't function, which means your display will be black when you turn it on. If you think this...
Read more >
[SOLVED] Computer turns on but no display (2022) - Driver Easy
Fix 5: Reinstall your RAM · 1) Press and hold the power button until your computer turns off. · 2) Disconnect the AC...
Read more >
My CPU turns on but there is no display. What may be the issue?
No signal on the screen most often is due to defective caps on the motherboard. Bad RAM, video card , or less less...
Read more >
All Physical memory being used but nothing showing in task ...
A nice tool, which in fact on a MS hosted site and should be much more accessible, to see your ACTUAL RAM usage...
Read more >
My computer is running slow, but task manager doesn't show ...
Look at the blue line in the top graph: CPU_Total. Plus, the computer is unbearably slow. I have like 12 cores, 24 logical...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found