Tomcat
톰캣 캐시증설 설정
생활개발
2024. 6. 5. 08:58
728x90
catalina.out에 캐시 증설하라는 로그가 쌓여 용량을 많이 차지한다.
톰캣
vi /usr/local/tomcat/conf/context.xml 설정
Context안에 추가
1. <Resources cachingAllowed="false"/> -> 캐쉬 사용 안함
2. <Resources cachingAllowed="true" cacheMaxSize="100000"/> -> 캐쉬사이즈 늘려주기
EX)
<Context>
<!-- Default set of monitored resources. If one of these changes, the -->
<!-- web application will be reloaded. -->
<Resources cachingAllowed="false"/>
<WatchedResource>WEB-INF/web.xml</WatchedResource> <!-- 여기 -->
<WatchedResource>WEB-INF/tomcat-web.xml</WatchedResource>
<WatchedResource>${catalina.base}/conf/web.xml</WatchedResource>
<!-- Uncomment this to disable session persistence across Tomcat restarts -->
<!--
<Manager pathname="" />
-->
</Context>
728x90