Tomcat의 Host의 appBase 와 Context 의 docBase 문제로 인해 TaskScheduler 가 중복으로 구동될 수 있다.
[스케줄러 동일것이 2번 호출됨]
<Service name="Catalina2">
<Connector port="8601" redirectPort="8445" connectionTimeout="20000" enableLookups="false" maxThreads="1024"
minSpareThreads="10" acceptCount="100" protocol="HTTP/1.1" URIEncoding="UTF-8" maxPostSize="-1" maxParameterCount="-1"/>
<Engine name="Catalina" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.LockOutRealm">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/>
</Realm>
<Host name="localhost" appBase="/data/www/" unpackWARs="true" autoDeploy="true">
<Valve className="org.apache.catalina.valves.RemoteIpValve" protocolHeader="x-forwarded-proto" />
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="/data/logs/pntbiz_admin_log/localhost-log"
prefix="localhost_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
<Context reloadable="true" docBase="admin" path="">
</Context>
<Alias>dev-admin.indoorplus.io</Alias>
</Host>
</Engine>
</Service>
</Server>
[스케줄러 정상 호출됨]
<Service name="Catalina2">
<Connector port="8601" redirectPort="8445" connectionTimeout="20000" enableLookups="false" maxThreads="1024"
minSpareThreads="10" acceptCount="100" protocol="HTTP/1.1" URIEncoding="UTF-8" maxPostSize="-1" maxParameterCount="-1"/>
<Engine name="Catalina" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.LockOutRealm">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/>
</Realm>
<Host name="localhost" appBase="" unpackWARs="true" autoDeploy="true">
<Valve className="org.apache.catalina.valves.RemoteIpValve" protocolHeader="x-forwarded-proto" />
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="/data/logs/pntbiz_admin_log/localhost-log"
prefix="localhost_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
<Context reloadable="true" docBase="/data/www/admin" path="">
</Context>
<Alias>dev-admin.indoorplus.io</Alias>
</Host>
</Engine>
</Service>
</Server>
'백엔드 > Java' 카테고리의 다른 글
RestFul URL 패턴 주의점. (0) | 2024.03.20 |
---|---|
메세지 컨버터 (0) | 2024.03.20 |
다중 transactionManager (0) | 2024.03.20 |
Spring AOP (0) | 2024.03.20 |
Filter 와 Interceptor (0) | 2024.03.20 |
멀티스레드 환경에서의 Thread-safe 테스트 (0) | 2024.03.20 |
하나의 프레임워크에서어 앱 업로드와 웹 업로드시 문제점 (0) | 2024.03.20 |
PK (Auto_increment) 가져오기 (0) | 2024.03.20 |
댓글