There is insufficient memory for the Java Runtime Environment to continue.
第一步:free -h 查看内存使用情况:
分析:分析是tomcat项目启动太多
第二步:ps -ef |grep tomcat 查看Tomcat相关进程
可以看到,Tomcat仍有多个进程在运行
第三步:手动kill对应的pid
如:kill 18310 19108 19414
再次 free -h
查看内存使用情况:
[root@localhost ~]# free -h total used free shared buff/cache available Mem: 15G 1.8G 13G 39M 364M 13G Swap: 3.9G 1.5G 2.3G