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的內存,可能開的東西太多了,關閉一些程序就好了

解決

關閉一些其他沒用的程序,給項目運行保留足夠的內存

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