Translate

[WebLogic][Error] 노드매니저로 서버 기동 후 발생한 PermGen OOME 에러










실습환경
 - OS: OracleLinux 5
 - WebLogic ver: 10.3.6



증상

노드매니저 구성 후 처음으로 매니지드서버를 기동했는데 웹페이지에서 계속 로딩중 표시만 나오며 Response 를 받아오지 못하고 있었다.
1004lucifer
로그를 보니 아래와 같이 PermGen space OOME(Out Of Memory Error) 가 발생을 했다.
단순 web.xml 파일과 index.jsp 파일 하나있는 소스인데 이게 발생을 할 수 있나 싶었는데..
PermGen 용량을 지정해주니 문제가 해결이 되었다.



# 실습환경 웹로직 관련 홈디렉토리 경로
# $BEA_HOME(웹로직 설치디렉토리): /app/weblogic1036/
[weblogic@ae2793daea03 bin]$ tail -f /app/weblogic1036/domains/1004lucifer_domain/servers/ManagedServer01/logs/ManagedServer01.out
<Aug 23, 2018 11:43:47 AM UTC> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
<Aug 23, 2018 11:43:48 AM UTC> <Notice> <Security> <BEA-090171> <Loading the identity certificate and private key stored under the alias 1004lucifer_key from the JKS keystore file /app/weblogic1036/ssl/1004lucifer_key.jks.>
<Aug 23, 2018 11:43:48 AM UTC> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the JKS keystore file /app/weblogic1036/ssl/1004lucifer_cert.jks.>
<Aug 23, 2018 11:43:48 AM UTC> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 172.17.0.2:9001 for protocols iiop, t3, ldap, snmp, http.>
<Aug 23, 2018 11:43:48 AM UTC> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 127.0.0.1:9001 for protocols iiop, t3, ldap, snmp, http.>
<Aug 23, 2018 11:43:48 AM UTC> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure[1]" is now listening on 127.0.0.1:8006 for protocols iiops, t3s, ldaps, https.> 1004lucifer
<Aug 23, 2018 11:43:48 AM UTC> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure" is now listening on 172.17.0.2:8006 for protocols iiops, t3s, ldaps, https.>
<Aug 23, 2018 11:43:48 AM UTC> <Notice> <WebLogicServer> <BEA-000332> <Started WebLogic Managed Server "ManagedServer01" for domain "1004lucifer_domain" running in Development Mode>
<Aug 23, 2018 11:43:50 AM UTC> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
<Aug 23, 2018 11:43:50 AM UTC> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
Exception in thread "Timer-1" java.lang.OutOfMemoryError: PermGen space
Exception in thread "ExecuteThread: '0' for queue: 'weblogic.socket.Muxer'" java.lang.OutOfMemoryError: PermGen space
Exception in thread "[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'" java.lang.OutOfMemoryError: PermGen space
Exception in thread "[STANDBY] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'" java.lang.OutOfMemoryError: PermGen space
Exception in thread "ExecuteThread: '2' for queue: 'weblogic.socket.Muxer'" java.lang.OutOfMemoryError: PermGen space
Exception in thread "[STANDBY] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'" java.lang.OutOfMemoryError: PermGen space
Exception in thread "[STANDBY] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'" java.lang.OutOfMemoryError: PermGen space
Exception in thread "ExecuteThread: '1' for queue: 'weblogic.socket.Muxer'" java.lang.OutOfMemoryError: PermGen space
Exception in thread "[STANDBY] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'" java.lang.OutOfMemoryError: PermGen space
Exception in thread "[STANDBY] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'" java.lang.OutOfMemoryError: PermGen space






조치방법
1004lucifer
'서버요약-서버선택' => '구성-서버시작'
위의 항목에서 인수에 아래와 같이 PermGen 크기를 지정해준다.
-XX:PermSize=128m -XX:MaxPermSize=256m






위와같이 지정 후 노드매니저를 통해 어드민서버에서 매니지드서버를 재기동하면 정상적으로 웹페이지가 보여진다.




댓글