昨天在运行项目的时候,idea莫名其妙的闪退,一次是在启动了tomcat,登陆的时候,一次是在项目运行过程中,打开chrome浏览器的时候,搞的人很郁闷,还得重启idea,查杀tomcat进程。网上查了查,在C盘 C:\Users\Administrator 下面找到了几个idea的日志。下图中就是那几个日志。
将日志打开,开头就给出了可能的原因和一些建议,内容如下
#
# Thereis insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate1637296 bytes for Chunk::new# Possible reasons:
# The systemis outof physical RAM or swap space
# The processisrunning with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap
# Possible solutions:
# Reduce memory load on the system
# Increase physical memory or swap space
# Checkif swap backing store isfull
# Decrease Java heap size (-Xmx/-Xms)
# Decrease number of Java threads