Written by James McDonald

May 17, 2023

Problem:

VS Code on Ubuntu 22.04 VM exits with “killed code 9”

journalctl | grep -i oom
May 17 12:58:03 tgn-vm-ln-02 kernel: Out of memory: Killed process 43215 (code) total-vm:1186602700kB, anon-rss:189300kB, file-rss:0kB, shmem-rss:36296kB, UID:1000 pgtables:1412kB oom_score_adj:300
May 17 12:58:03 tgn-vm-ln-02 systemd[1]: [email protected]: A process of this unit has been killed by the OOM killer.
May 17 12:58:03 tgn-vm-ln-02 systemd[1527]: app-gnome-code-43150.scope: A process of this unit has been killed by the OOM killer.

Cause:

Ubuntu VM has no Swap Space

Resolution:

Add swap space

https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-20-04

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…

Clear HSTS Settings in CHrome

Open chrome://net-internals/#hsts enter the domain in the query field and click Query to confirm it has HSTS settings...

Ubuntu on Hyper-v

It boils town to installing linux-azure # as root or sudo apt-get update apt-get install linux-azure...