记录一次idea闪退的经历
这几天一直被idea闪退所烦恼。现在终于找到就解决办法。
打开idea会有错误提示。
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 101711872 bytes for Failed to commit area from 0x0000000096a00000 to 0x000000009cb00000 of length 101711872.
# Possible reasons:
# The system is out of physical RAM or swap space
# The process is running 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
# Check if swap backing store is full
然后我百度了一波,答案都是这样的。都是去修改配置里面的文件,我跟着修改了,但是还是不行。
我继续查询,查询到可能是插件的错误。
我删掉了破解的插件,很遗憾还是不行。
今天早上我启动了所有服务,跑了一会儿,idea闪退了,但是服务任然跑着,原来只是编译工具闪退了,仅仅只是idea闪退,接着我继续查询一些资料,突然浏览器报错,显示内存不足,无法访问。
然后我根据这篇博客修改了虚拟内存,然后就成功了。
博客:https://blog.csdn.net/Doctor_1234/article/details/106476057
然而剧情再次反转,结局意外,居然再次闪退,没办法了。。。。
真的没办法了?
尝试了一下少启动几个微服务,之前启动15个微服务,现在只启动10个,果然电脑安然无恙,再也没有闪退。