jupyter / help

:sparkles: Need some help or have some questions? Please visit our Discourse page.
https://discourse.jupyter.org
291 stars 97 forks source link

Kernel restarted without out of memory exception in docker #418

Closed aisensiy closed 5 years ago

aisensiy commented 6 years ago

My jupyter notebook is running in docker with a memory limitation. The problem is that the running kernel is restarted when it reach the memory limitation without any error report.

So is there some way to show the exception to tell user why the kernel is down?

minrk commented 5 years ago

That can be hard, because any memory allocation could fail. If you are lucky, it will be a Python call, and you could get a MemoryError. However, it's more likely that it will be a low-level call and the process will just die. Unfortunately, there is no good way to tell why the kernel was killed, but a tool like nbresuse can give them a better monitor of their memory usage as it happens, which might help them figure it out.

aisensiy commented 5 years ago

Thanks for your reply. I will try to add some monitor to help user understand the reason why the kernel is shutdown.