MemoryAvailable
MemoryAvailable[] gives the estimated number of bytes readily available for storing additional data in the current Wolfram Language kernel session.
Examples
Check available memory:
MemoryAvailable[]Display in megabytes:
MemoryAvailable[] / 10^6Please visit the official Wolfram Language Reference for more details.