There is insufficient memory for the Java Runtime Environment to continue.
Native memory allocation (malloc) failed to allocate 180992 bytes for Chunk::new
Possible reasons:
The system is out of physical RAM or swap space
In 32 bit mode, the process size limit was hit
Possible solutions:
Reduce memory load on the system
Increase physical memory or swap space
Check if swap backing store is full
Use 64 bit Java on a 64 bit OS
Decrease Java heap size (-Xmx/-Xms)
Decrease number of Java threads
Decrease Java thread stack sizes (-Xss)
Set larger code cache with -XX:ReservedCodeCacheSize=
This output file may be truncated or incomplete.
Out of Memory Error (allocation.cpp:328), pid=71060, tid=71956
当我在小型 vps(只有 1gb 内存)上运行我的游戏服务器时出现上述错误
我不确定是什么原因我安装了 64 位 java 作为它的 64 位
我正在使用 java -Xmx768m