Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000081c00000, 134217728, 0) failed; error

编译程序时代码没错,结果报错,原因是内存满了,(短期)关闭一些不用的程序就行了,想彻底解决问题的话,建议加装内存,或者换大的内存,建议使用频率相同的两根内存条,组成双通道.
启动程序报错:
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000006fff80000, 2863661056, 0) failed; error=’Cannot allocate memory’ (errno=12)

There is insufficient memory for the Java Runtime Environment to continue. # Native memory allocation (malloc) failed to allocate 2863661056 bytes for committing reserved memory. # An error report file with more information is saved as: # /home/raini/IdeaProjects/spark_mllib/hs_err_pid19206.log

内存不足: 减少启动程序所需内存,或加大内存,如关闭一些程序。

关机给Linux虚拟机加大内存.

转载于:https://www.cnblogs.com/gentle-awen/p/10114775.html

posted @ 2022-07-22 15:34  Haziy  阅读(459)  评论(0编辑  收藏  举报