톰캣에서의 Quartz 중복 실행 해결
작업 환경 : CentOS + Tomcat + Spring.
Quartz Job runs twice or triple.
위와 같은 환경에서 Quartz 실행시 Job이 두개 이상 중복 실행되는 경우가 있습니다.
이럴때는... 다음과 같이 해주시면 됩니다.
※ 톰캣 server . xml 파일의 Host 설정 시 다음의 설정 값 추가
autoDeploy="false" deployOnStartup="false"
다들 잘 아시겠지만,
server.xml 파일의 위치는 /apache-tomcat-home/conf 폴더입니다.
<Host name="eclipse.naver.com" appBase="webapps" unpackWARs="true" autoDeploy="false" deployOnStartup="false">
https://tomcat.apache.org/tomcat-8.0-doc/config/host.html
Apache Tomcat 8 Configuration Reference (8.0.53) - The Host Container
In many server environments, Network Administrators have configured more than one network name (in the Domain Name Service (DNS) server), that resolve to the IP address of the same server. Normally, each such network name would be configured as a separate
tomcat.apache.org
Quartz job runs twice when deployed on tomcat 6/Ubuntu 10.04LTS
I run a Spring Framework/SmartGWT based web-app, with now an added Quartz job. The job is supposed to run every day at 2am, and picks winners from a DB table. From my logs I see it runs twice,
stackoverflow.com
'Development > Web Develope' 카테고리의 다른 글
구글 크롬 96. 트위터, Discord, 인스타그램, 비디오 렌더링 등 중단 오류 발생 및 해결 방법 (0) | 2021.11.19 |
---|---|
아파치 FreeMarker™. 템플릿 엔진. (2) | 2021.08.10 |
javaScript / jQuery의 js 파일 사용 시 한글 깨짐 현상 (0) | 2020.08.07 |
[CentOS] 시스템 부팅 시 Tomcat 자동 실행 설정하기 (0) | 2020.04.14 |
Apache. Permission denied: proxy: HTTP: attempt to connect to 127.0.0.1:8080 (localhost) failed (2) | 2019.06.16 |
댓글