Python Forum

Full Version: Process finished with exit code 137 (interrupted by signal 9: SIGKILL)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I urgently need help with the following error message. I run pycharm on ubuntu 20.04.
I need to save data (as .npy) approximately 15 GB size. At the saving point, I always see
error message below;

Error:
Process finished with exit code 137 (interrupted by signal 9: SIGKILL)
How to fix it?
This is an OOM (Out-Of-Memory).
The sigkill comes from the Kernel because it's out of free memory.
  • buy more RAM
  • use an iterative approach to process data in smaller chunks, which fits into RAM
  • run your program once without PyCharm (PyCharm requires 1 GiB of RAM or more)
  • incrase swap, but you're warned, it's deadly slow


The best method is to optimize your process, that it fits into memory.
(Apr-18-2022, 06:08 PM)DeaD_EyE Wrote: [ -> ]This is an OOM (Out-Of-Memory).
The sigkill comes from the Kernel because it's out of free memory.
  • buy more RAM
  • use an iterative approach to process data in smaller chunks, which fits into RAM
  • run your program once without PyCharm (PyCharm requires 1 GiB of RAM or more)
  • incrase swap, but you're warned, it's deadly slow

The best method is to optimize your process, that it fits into memory.

Quote:[*]incrase swap, but you're warned, it's deadly slow
I expanded the virtual memory by doing this, and it worked. Here“s what I found here