목록tomcat (3)
코딩마을방범대

기존 war 파일 배포 시 yml을 못 찾아 잘 설정된 데이터베이스 url을 못 읽는 등의 문제가 발생했다 아래와 같이 잘 설정된 url도, profiles도 찾지 못해 엄청난 오류 로그가 떴다. *************************** APPLICATION FAILED TO START *************************** Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class Action: Consider the fol..
tomcat 서버 구동 시 메모리릭 발생 1. 현재 tomcat pid값 확인 $ sudo ps -aux | grep tomcat tomcat 6052 6.2 10.0 7987608 1625540 ? Sl 15:07 3:46 //bin/java -Djava.util.logging.config.file=/data/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xmx2048m -Xms2048m -XX:PermSize=1024m -XX:MaxPermSize=1024m -XX:NewSize=512m -XX:MaxNewSize=1024m -XX:ParallelGCThreads=2 -XX..

tomcat 오류가 발생하는 경우 /var/log/tomcat9 위 경로에서 로그 파일(catalina.out) 확인이 가능하다. 위 경로로 접속한 후 하기 명령어를 실행하면 로그파일 확인이 가능하다. sudo tail -1000f catalina.out // 1000줄 확인 sudo tail -f catalina.out // 10줄 확인 // 경로로 이동하지 않고 한 번에 실행하는 방법 sudo tail -1000f /var/log/tomcat9/catalina.out 💡 TIPS! MySQL 데이터베이스 공유하는 방법 Navigator의 Users And Privileges -> Add Account 클릭 Name과 Password 입력 후 Limit to Host Matching은 %로 Apply ..