Questions about RAM usage, including optimizing memory use, avoiding and fixing leaks and releasing unused memory.
See also performance-tuning.
The Mathematica documentation includes a tutorial on memory management and a collection (‘guide’) on memory-related functionality.
Memory usage can be tracked using the MemoryInUse[]
command.