https://unix.stackexchange.com/questions/185855/linux-always-hangs-when-out-of-physical-memory
[Leap 4.1 hangs with our of memory error.
A similar problem is described here: Linux always hangs when out of physical memory - Unix & Linux Stack Exchange](Linux always hangs when out of physical memory - Unix & Linux Stack Exchange)
The machine has 4 gig of physical memory and was configured with a 2 gig swap partition.
I created a 2gig swap file on the /home ext4 partition. All the other partitions were configured with btrfs.
Swap file instructions: Linux always hangs when out of physical memory - Unix & Linux Stack Exchange
I needed to increase the swappiness to 100 as well - .swap - How do I configure swappiness? - Ask Ubuntu
Leap has been running for a week now with no hangs. Memory management seems to have improved as physical memory usage is now averaging around 2.6G out of 3.7G with 2G out of the 4G swap memory being used.
I am running the same set of desktop apps.