본문 바로가기
반응형

java29

spring boot 구동시 로깅 레벨 변경 GC_OPTS=" -XX:+UseParallelGC -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps -Xloggc:${LOG_PATH}/verbosegc.vgc "LOG_OPTS=" -Dlogging.level.root=DEBUG -Dlogging.level.com=DEBUG "JAVA_OPTS=" -server -Dnop -Dfile.encoding=utf-8 -Dhttp.keepAlive=true -Dhttp.maxConnections=200 "JAVA_OPTS="${JAVA_OPTS} -Xmx2G -Xms2G ${GC_OPTS} ${JMX_OPTS} ${LOG_OPTS}"SPRING_OPTS=" -Dspri.. 2024. 9. 25.
intellij console log 에서 jsp 컴파일 에러 확인 intellij에서 톰캣을 실행할때 vm args의 옵션으로 logging.properties를 명시할 수 있다.-Djava.util.logging.config.file="C:\work\tomcat\tomcat9\conf\logging.properties" logging.properties 파일에서 아래 항목에 대해서 주석처리를 하면 jsp 컴파일 에러는 intellij 콘솔 로그에서 확인할 수 있다.#org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = FINE#org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.j.. 2024. 7. 22.
tomcat9 jmx jconsole 연결 옵션 tomcat9은 톰캣7, 8 버전과는 다르게 별도로 라이브러리를 추가할 필요가 없다. 톰캣 실행시 옵션을 추가하면 된다. 톰캣 9 문서https://tomcat.apache.org/tomcat-9.0-doc/monitoring.html Apache Tomcat 9 (9.0.89) - Monitoring and Managing TomcatMonitoring is a key aspect of system administration. Looking inside a running server, obtaining some statistics or reconfiguring some aspects of an application are all daily administration tasks. Note: This co.. 2024. 5. 8.
springboot jar파일 외부에서 properties 적용 springboot를 사용하고 jar파일로 배포를 진행하는 프로젝트에서 디비의 접속 URL을 변경해야 하는 이슈가 생겼다. 현재 배포된 jar파일은 수정하지 않고, 수정한 properties만 적용하는 방법이 없을까 하여 검색하여 아래 문서에서 해당 내용을 찾게 됨 https://www.baeldung.com/spring-properties-file-outside-jar https://docs.spring.io/spring-boot/docs/current/reference/html/features.html#features.external-config.files Core Features In the absence of an Executor bean in the context, Spring Boot auto.. 2024. 4. 15.
반응형