Tomcat shutdown 시, [심각] 질문 좀 할게요.

8,834 views
Skip to first unread message

이랑게

unread,
Sep 23, 2012, 12:39:21 AM9/23/12
to ks...@googlegroups.com
안녕하세요.
OutOfMemoryError 골치 썩는 중입니다.

검색해서 처음으로 heap dump 분석도 해 보는 중인데,
Eclipse Memory Analyzer 사용해서 보는 중인데 서툴러서인지 어렵네요.

이것저것 보고, mat 뒤적이고, 검색해서 보는데 계속 
이 부분이 눈에 띄네요.

그러다 Tomcat shutdown 시, 걸리던 문구가 보였습니다.

심각: The web application [/www] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2012. 9. 23 오전 11:08:27 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
심각: The web application [/www] appears to have started a thread named [MySQL Statement Cancellation Timer] but has failed to stop it. This is very likely to create a memory leak.

Spring + Hibernate 사용 중인데,
혹시 이와 관련된 문제에 대한 조언 좀 구할 수 있을까요??


고맙습니다.
수고하시고, 즐거운 주말 보내세요-

이랑게

unread,
Sep 23, 2012, 1:00:59 AM9/23/12
to ks...@googlegroups.com
심각: The web application [/www] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.

이 부분은 tomcat/bin/, WEB-INF/lib/
mysql-connector-java-version-bin.jar 파일 중복이어서 WEB-INF/lib/ 안에 파일 제거하니 없어졌는데,


심각: The web application [] appears to have started a thread named [MySQL Statement Cancellation Timer] but has failed to stop it. This is very likely to create a memory leak.
이 부분은 여전하네요. 조언 좀 해 주세요-

박세종

unread,
Sep 23, 2012, 1:10:22 AM9/23/12
to ks...@googlegroups.com

톰캣셧다운시 발생하는건 문제가 되지 않습니다.
톰갯자체가 꺼지기 때문에 톰캣에 할당되었던 메모리가 모두 반환됩니다.

KwonNam Son

unread,
Sep 23, 2012, 6:16:48 AM9/23/12
to ks...@googlegroups.com
그냥 항상 나는 문제입니다.

톰캣을 셧다운 할 때는 상관 없고, 톰캣의 컨텍스트를 리로드 할 때는 메모리 릭 때문에 실제로 OutOfMemory 예외가 발생합니다.

한마디로 셧다운 할 때는 걍 무시해도 되는 것으로 압니다.


2012년 9월 23일 오후 2:10, 박세종 <stevep...@gmail.com>님의 말:

톰캣셧다운시 발생하는건 문제가 되지 않습니다.
톰갯자체가 꺼지기 때문에 톰캣에 할당되었던 메모리가 모두 반환됩니다.

--
Google 그룹스 'Korea Spring User Group' 그룹에 가입했으므로 본 메일이 전송되었습니다.
이 그룹에 게시하려면 ks...@googlegroups.com(으)로 이메일을 보내세요.
그룹에서 탈퇴하려면 ksug+uns...@googlegroups.com로 이메일을 보내주세요.
더 많은 옵션을 보려면 http://groups.google.com/group/ksug?hl=ko에서 그룹을 방문하세요.



--
* 까먹지말자! http://kwon37xi.egloos.com

KwonNam Son

unread,
Sep 23, 2012, 6:22:37 AM9/23/12
to ks...@googlegroups.com
꼭 해결하고 싶다면 MySQL JDBC 드라이버를 최신으로 업그레이드 하면 될 듯 합니다.
http://bugs.mysql.com/bug.php?id=36565

2012년 9월 23일 오후 7:16, KwonNam Son <kwon...@gmail.com>님의 말:

이랑게

unread,
Sep 23, 2012, 6:57:14 PM9/23/12
to ks...@googlegroups.com
박세종님, 권남님 답변 너무나 고맙습니다.
덕분에 궁금증이 풀렸습니다.

고맙습니다!
모두 좋은 한 주 보내세요-
Reply all
Reply to author
Forward
0 new messages