There are 4 primary consumers of memory in the on-premises appliance:
Oracle
We reserve 3 GB of memory for the Oracle processes
ALM
ALM memory is computed at run-time. The formula is as follows:
memory = (total_system_memory - 3000) * .6
The default setting of 8 GB of system memory will leave 3 GB for ALM. Increasing the system memory to 12 GB will allow ALM to use up to 5.4 GB.
Analytics
Analytics receives a static 512 MB of memory
Solr
Solr receives a static 256 MB of memory