I'm trying to build an application (dbeaver) on a VPS with limited physical resources (~1GiB of RAM). To compensate I've set up 8GiB of swap space. Trying to build dbeaver always results in a Java heap space error. None of my swap is being used, though. I already tried to change the kernel swappiness values to fix this, but it hasn't. Once the physical memory is exhausted the build fails.
How can I ensure that swap space is used for maven builds? -- John Rinehart