How to increase Jupyter notebook Memory limit?

后端 未结 2 1916
孤独总比滥情好
孤独总比滥情好 2020-12-01 14:17

I am using jupyter notebook with Python3 on windows 10. My computer has 8GB RAM and at least 4GB of my RAM is free.

But when I want to make a numpy ndArray with size

2条回答
  •  没有蜡笔的小新
    2020-12-01 14:56

    For Jupyter you need to consider 2 processes:

    1. The local HTTP server (which is based on Tornado)
    2. Kernel process (normally local but can be distributed and depends on your config).

    max_buffer_size is a Tornado Web Server setting, corresponds to the Maximum amount of incoming data to buffer and defaults to 100MB (104857600). (https://www.tornadoweb.org/en/stable/httpserver.html)

    Based on this PR, this value seems to have been increased to 500 MB in Notebook.

    Tornado HTTP server does not allow to my knowledge to define the max memory, it runs as a Python3 process.

    For the kernel, you should look at the command defined kernel spec.

    An option to try would be this one

提交回复
热议问题