Python Forum
Process finished with exit code 137 (interrupted by signal 9: SIGKILL)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Process finished with exit code 137 (interrupted by signal 9: SIGKILL)
#1
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?
Reply
#2
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.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply
#3
(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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  python difference between sys.exit and exit() mg24 1 1,764 Nov-12-2022, 01:37 PM
Last Post: deanhystad
  Using .hdf5 files only once they are finished writing pyhill00 7 2,722 Nov-25-2021, 06:01 PM
Last Post: pyhill00
  Speed up code with second process help samuelbachorik 0 1,381 Sep-04-2021, 09:31 AM
Last Post: samuelbachorik
  How to check if a file has finished being written leocsmith 2 7,694 Apr-14-2021, 04:21 PM
Last Post: perfringo
  Code taking too much time to process ErPipex 11 4,820 Nov-16-2020, 09:42 AM
Last Post: DeaD_EyE
  <while> cycle is not interrupted when using the <random>module ShityCoder 3 2,106 Sep-04-2020, 04:05 PM
Last Post: ShityCoder
  process finished with exit code -1073741819 (0xC0000005) GMCobraz 8 5,311 Sep-01-2020, 08:19 AM
Last Post: GMCobraz
  How to stop Xmodem after bin file transfer was finished shaya2103 0 2,477 Nov-27-2019, 04:33 PM
Last Post: shaya2103
  How to sharing object between multiple process from main process using Pipe Subrata 1 3,619 Sep-03-2019, 09:49 PM
Last Post: woooee
  random behavriour when handle process termination signal in Python hamzeah 2 1,992 Jul-31-2019, 07:32 AM
Last Post: hamzeah

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020