■ Exception in thread “http-bio-38080-exec-7” java.lang.OutOfMemoryError: PermGen space
톰캣 서버를 기본 셋팅으로 설치하고 개발중인 프로젝트를 tomcat-maven-plugin 플러그인으로 배포를 하는데 위의 제목과 같은 메세지가 자주 발생하였다. 이를 해결하는 방법을 알아보고자 한다
리눅스에서 톰캣을 서비스하고 있다면 TOMCAT_HOME/bin/catalina.sh파일의 상단에 다음을 추가하면 OutOfMemoryError가 발생하지 않는다.
JAVA_OPTS="-Djava.awt.headless=true -server -Xms512m -Xmx1024m -XX:NewSize=256m -XX:MaxNewSi ze=256m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:+DisableExplicitGC"
- Tomcat https 서비스(SSL, keystore) 2015년 7월 26일
- tomcat java.lang.OutOfMemoryError: PermGen space 2016년 2월 23일
- tomcat-maven-plugin을 통한 maven tomcat배포 2016년 2월 23일
- ServletContextLister를 구현한 웹 애플리케이션 시작 시 작업 2016년 5월 2일
- Tomcat 시작시 ServletContextListener를 통한 mySQL 접속 2018년 5월 8일
- Tomcat Startup timeout error in Eclipse 2018년 5월 24일
- Tomcat : consider increasing the maximum size of the cache 2019년 3월 4일