Unable to launch spark shell

spark-shell --packages com.databricks:spark-avro_2.11:3.2.0
Java HotSpot™ 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000e0000000, 358088704, 0) failed; error=‘Cannot allocate memory’ (errno=12)

There is insufficient memory for the Java Runtime Environment to continue.

Native memory allocation (mmap) failed to map 358088704 bytes for committing reserved memory.

An error report file with more information is saved as: