問題
在使用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的內存,可能開的東西太多了,關閉一些程序就好了
解決
關閉一些其他沒用的程序,給項目運行保留足夠的內存