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

电玩女神 2023-07-21 16:24 647阅读 0赞

问题

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

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

在这里插入图片描述

原因

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

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

解决

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

发表评论

表情:
评论列表 (有 0 条评论,647人围观)

还没有评论,来说两句吧...

相关阅读