我正在尝试在 Red Hat Enterprise Linux Server 6.5 (Santiago) 版上启动一个进程,该进程失败了,因为它无法分配足够的内存。
# There is insufficient memory for the Java Runtime Environment to continue.
# Cannot create GC thread. Out of system resources.
# An error report file with more information is saved as:
Run Code Online (Sandbox Code Playgroud)
问题不在于 Java 应用程序本身 - 当我简单地运行时,我也会收到错误:
版本
查看内存消耗:
自由 -m
total used free shared buffers cached
Mem: 32069 31276 792 0 556 16948
-/+ buffers/cache: 13771 18297
Swap: 9325 38 9287
Run Code Online (Sandbox Code Playgroud)
因此,Mem 报告说正在使用 32 Gb 内存中的 31 Gb,但应该有 18 Gb …