IBM Support

How to prevent the creation of core dump file when Jupyter Notebook crash on Watson Studio Local 1.2.3.x

Question & Answer


Question

For any reason when Jupyter Notebook crashed, sometime it creates a large size of core dump file under the user directory. Is there any way to prevent the creation of this core dump file?

Answer

To avoid the creation of core dump file, add line "ulimit -c 0" setting on each project's ".project-rc" file.

How to add this setting

             1. Create a project, open the Environments tab of that project

             2. Click Launch Terminal Icon (on the right top) and select Terminal with Python

             3. Once terminal session opened, type following command

                 $ ls -als      ### confirm there is file called .project-rc

                 $ vi .project-rc

                    ### Add following line to this file

                    ulimit -c 0

             4. Save .project-rc and exit from this terminal session

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSHGWL","label":"IBM Watson Studio Local"},"Component":"Jupyter Notebook","Platform":[{"code":"PF016","label":"Linux"}],"Version":"Watson Studio Local 1.2.3.x","Edition":"n\/a","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
30 December 2019

UID

ibm11136302