728x90
반응형
728x90
반응형

안녕하세요.

톰캣 캐시 부족 현상 해결하기에 대해 알아보겠습니다.

저의 증상은 이미 실행 중인 서비스내 로그가 많이 쌓이는 현상이었습니다.

  • 로그
27-Oct-2022 18:39:59.062 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.webresources.Cache.backgroundProcess The background cache eviction process was unable to free [10] percent of the cache for Context [/tomcat/repository] - consider increasing the maximum size of the cache. After eviction approximately [17,482] KB of data remained in the cache.
27-Oct-2022 18:40:09.063 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.webresources.Cache.backgroundProcess The background cache eviction process was unable to free [10] percent of the cache for Context [/tomcat/repository] - consider increasing the maximum size of the cache. After eviction approximately [17,482] KB of data remained in the cache.

로그가 10초마다 쌓이는 현상이었으며 저는 단순 재기동으로 증상이 해결되었습니다.

구글링 해보니 서비스 시작시 로그가 발생한 경우 톰캣 context.xml파일에 아래 설정값을 추가해주면 된다고 하니 참고해주면 될 것 같습니다.

파일위치 : /톰캣설치경로/conf/context.xml

<Resources cachingAllowed="true" cacheMaxSize="100000"/>

 

728x90
반응형
728x90
반응형

+ Recent posts