参考文章1 参考文章2 tomcat启动异常:Cannot allocate memory 1、free -h 查看内存使用情况: 2.查看tomcat进程 ps -ef |grep tomcat 3、杀掉pid进程