eclipse

[eclipse/tomcat] 이클립스 톰캣 메모리 설정

도미노& 2017. 5. 19. 21:15

출처: http://blog.naver.com/PostView.nhn?blogId=gy801110&logNo=90698065



톰켓을 실행하다 보면 메모리를 많이 잡아 묵는 녀석들이 있기 마련이다.

 

그럴 경우 아래와 같은 에러가 발생할 수 있다..

 

 

HTTP Status 500 -


type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

java.lang.reflect.InvocationTargetException
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	java.lang.reflect.Method.invoke(Unknown Source)

 

 

그럴 경우.. 이클립스의 톰켓 메모리를 좀~ 늘려주면 되는데

-XX:MaxPermSize=512m
-Xms128M
-Xmx128M

이와 같은 형태로 늘려주면 된다. 아래 그림 참고..