There is insufficient memory for the,Native memory allocation (malloc) failed to

问题

在使用eclipse运行java web项目的时候,控制台报了如下错误

There is insufficient memory for the Java Runtime Environment to continue.
Native memory allocation (malloc) failed to allocate 1845936 bytes for Chunk::new

在这里插入图片描述

原因

上图说的很明白:运行内存不足

我电脑4G的内存,可能开的东西太多了,关闭一些程序就好了

解决

关闭一些其他没用的程序,给项目运行保留足够的内存

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章