There are two ways to configure Raspberry Pi OS to boot into console or GUI mode. First, run # raspi-config, select "System Options", then "Boot / Auto Login".
A Linux server was reported to be using over 90% of its memory, but its administrator could not identify a memory-heavy process. My initial check with free showed nothing unusual.