Cause: the system setting does not allow over commit.
So, cannot allocate enough memory
/Etc/sysctl. conf
VM. overcommit_memory = 1
Or
Sysctl VM. overcommit_memory = 1
Or
Echo 1>/proc/sys/Vm/overcommit_memory kernel parameters are described as follows: The overcommit_memory file specifies the kernel's memory allocation policy. The value can be 0, 1, or 2. 0 indicates that the kernel will check whether there is enough available memory for use by the process. If there is enough available memory, the memory application will be allowed; otherwise, the memory application will fail, and return the error to the application process.
1 indicates that the kernel allows all physical memory allocation regardless of the current memory status.
2. indicates that the kernel is allowed to allocate more memory than the total physical memory and swap space.
The JVM cannot be started, and JPS cannot run, prompting that the memory is insufficient.