I have a Debian server that I'm really cheaping out on, but for some reason the Java processes use all the memory then throw a "OutOfMemoryError" rather than using the swap space.
I've got 1GB of Swap, and
htop will show
0/1024M in usage no matter what I do.
I've tried using
sudo sysctl vm.swappiness=100, but the swap space still doesn't get used
As an additional point,
sudo swapon --show displays:
NAME TYPE SIZE USED PRIO /swapfile file 1024M 0B -1
(and the chmod permissions are set to
600), So I believe my swapfile is working.
Anyone have any ideas? Thanks!