Documentation for method total-memory assembled from the following pages:

Class: Kernel §

From Kernel

(Kernel) method total-memory §

method total-memory(--> Int)

Instance / Class method returning the total memory available to the system. When using the JVM, this returns the total memory available to the JVM instead. This method is only available in release v2019.06 and later.