问题
在使用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的内存,可能开的东西太多了,关闭一些程序就好了
解决
关闭一些其他没用的程序,给项目运行保留足够的内存