Startup Issue with Minecraft - not enough memory (server is modded)

System Information

Field Value
Operating System Linux - Debian GNU/Linux 12 on x86_64
Product AMP ‘Phobos’ v2.6.0.8 (Mainline)
Virtualization Docker
Application Minecraft
Module MinecraftModule
Running in Container Yes
Current State Failed

Problem Description

Issue

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

Native memory allocation (mmap) failed to map 10485760000 bytes. Error detail: committing reserved memory.

An error report file with more information is saved as:

/AMP/Minecraft/hs_err_pid4202.log

Reproduction Steps

  • shut down to disable spawn protection
  • try to restart with it saying not enough ram
  • allocate more ram

Show the amount you have configured for the memory limit under Java and Memory