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
  How can I make this code more efficient and process faster? steven_ximen 0 357 Dec-17-2024, 04:27 PM
Last Post: steven_ximen
  QThread Signal is emitted immediately at start of Code Caliban86 3 1,590 Sep-26-2024, 02:02 PM
Last Post: deanhystad
  python difference between sys.exit and exit() mg24 1 3,832 Nov-12-2022, 01:37 PM
Last Post: deanhystad
  Using .hdf5 files only once they are finished writing pyhill00 7 4,035 Nov-25-2021, 06:01 PM
Last Post: pyhill00
  Speed up code with second process help samuelbachorik 0 1,847 Sep-04-2021, 09:31 AM
Last Post: samuelbachorik
  How to check if a file has finished being written leocsmith 2 11,047 Apr-14-2021, 04:21 PM
Last Post: perfringo
  Code taking too much time to process ErPipex 11 7,126 Nov-16-2020, 09:42 AM
Last Post: DeaD_EyE
  <while> cycle is not interrupted when using the <random>module ShityCoder 3 2,982 Sep-04-2020, 04:05 PM
Last Post: ShityCoder
  process finished with exit code -1073741819 (0xC0000005) GMCobraz 8 7,502 Sep-01-2020, 08:19 AM
Last Post: GMCobraz
  How to stop Xmodem after bin file transfer was finished shaya2103 0 3,243 Nov-27-2019, 04:33 PM
Last Post: shaya2103

Forum Jump:

User Panel Messages

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