WebLogic 10.3.6 패치 이슈 확인 - 2017년04월18일 자

View Comments

Oracle WebLogic Server - Version 10.3.6 에서 최신 패치

2017년 04월 18일 자 적용 후 아래와 같은 에러 현상 발생

 

1. After applying patch 20181997 - WLS PATCH SET UPDATE 10.3.6.0.11

Patch 20181997 has been applied

 

패치업데이트 날짜 : 2017/03/22

해당패치 URL

https://support.oracle.com/epmos/faces/PatchDetail?_adf.ctrl-state=tbvvi8amp_4&patchId=25388747&_afrLoop=316101845522991


*해당 패치 에러는 항상나는 점은 아님*

적용 패치 ID : RVBS
----------------------------------------------------------------------------------------------------------
<ServletContext-/Tax> <> <>
#### <> <>  java.lang.AssertionError: Reference Count value set below 0, value is-1.
java.lang.AssertionError: Reference Count value set below 0, value is-1
  at weblogic.servlet.internal.session.ReplicatedSessionContext.sync(ReplicatedSessionContext.java:88)
  at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.syncSession(ServletRequestImpl.java:2981)
  at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.syncSessions(ServletRequestImpl.java:2959)
  at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.syncSession(ServletRequestImpl.java:2947)
  at weblogic.servlet.internal.ServletResponseImpl$1.run(ServletResponseImpl.java:1504)
  at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
  at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
  at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:1498)
  at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1499)
  at weblogic.work.ExecuteThread.execute(ExecuteThread.java:263)
  at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

 

-----------------------------------------------------------------------------------------------------------
해당 에러 관련한 내용은 아래와 같으며, URL 남깁니다.

 

 

참고 URL

https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-state=tbvvi8amp_4&_afrLoop=314574272017476

 

2. 해당 에러 현상이 발생할 경우 아래와 같이 패치 진행 필요

 

패치업데이트 날짜 : 2017/04/16

Patch 18057437: SU PATCH[ZPCJ] : 10.3.6.0.170418WLSPSU Overaly
적용패치 ID : ZPCJ

해당화면의 하단의 관련 패치 중

2031641.1  After Applying Patch 20181997 Application Fails With java.lang.AssertionError: Reference Count value set below 0, value is-1

 

부분이 위의 현상에 대한 패치를 나타냅니다.

 

참고 URL 은 아래와 같습니다.

 

https://support.oracle.com/epmos/faces/PatchDetail?_adf.ctrl-state=tbvvi8amp_4&patchId=18057437&_afrLoop=315609907691482

 

이상입니다.

Comments (+add yours?)

Tracbacks (+view to the desc.)

[WebLogic 11g] access.log 에서 app 수행 시간 출력하기

View Comments

--------------------------------------------------------------------------------------------------------------------


웹로직 access.log 에서 애플리케이션의 수행 시간도 함께 찍기 위한 방법입니다.


기본적으로 아무런 설정을 하지 않을 경우 아래와 같은 모습으로 log를 출력합니다.



날짜 / 시간 / 호출 메소드 방식 / URI 주소 / Query String Status 순 입니다.


--------------------------------------------------------------------------------------------------------------------



< 설 정 방 법 >



어드민 콘솔 > 좌측 메뉴에서 서버 선택 > 해당 서버 클릭 후 로깅 > Advanced 클릭 합니다.


1. Format을 Extended로 변경합니다. (Default는 Common)


2. Extended Logging Format Fields에 time-taken을 추가해 줍니다.



--------------------------------------------------------------------------------------------------------------------


(+) 해당 로그 설정이 나타내는 정보는 아래와 같습니다.



https://docs.oracle.com/cd/E40518_01/server.761/es_admin/src/tadm_logging_access_log.html



date - 트랜잭션이 끝난 날짜


time - 트랜잭션이 끝난 시간


time-taken - 트랜잭션이 끝나는데 걸린 시간 (초)


cs-method - 요청 메소드


cs-uri - 요청된 전체 URI 주소


sc-status - 응답 상태값 (예) 404



(+) Default로 지정되어 있는 설정은 date time cs-method cs-uri sc-status 입니다.


--------------------------------------------------------------------------------------------------------------------


< 확 인 >


설정 저장 후 WAS를 재기동 하고 다시 access.log 를 확인하면 수행 시간도 함께 출력합니다. (노란색 박스)




이를 통해 요청이 오래 걸리는 페이지를 알 수 있습니다.



Comments (+add yours?)

Tracbacks (+view to the desc.)

웹로직 12.2.X 이상에서 force shutdown 방법

View Comments

웹로직 12.2.X 이상에서 weblogic.Admin 유틸리티가 Deprecated​ 되어 force shutdown 사용이 불가하였을 것입니다.

오라클의 가이드는 weblogic.Admin 대신 WLST를 이용하라는 것입니다.

참조URL: http://docs.oracle.com/cd/E24329_01/web.1211/e24497/roadmap.htm#i1063423


WLST > Life Cycle Commands > shutdown 에서 force 옵션을 설정할 수 있습니다. (디폴트는 false)

참조URL: http://docs.oracle.com/cd/E23943_01/web.1111/e13813/reference.htm#WLSTC119


설정 방법은 아래와 같습니다.

{DOMAIN_HOME}/bin/stopWebLogic.cmd(sh) 파일에서 아래와 같은 부분에 force='true' 추가

------------------------------------------------------------------------

echo wlsUserID = java.lang.System.getenv^('wlsUserID'^) >"shutdown-%SERVER_NAME%.py" 
echo wlsPassword = java.lang.System.getenv^('wlsPassword'^) >>"shutdown-%SERVER_NAME%.py" 
echo connect^(%userID% %password% url='%ADMIN_URL%', adminServerName='%SERVER_NAME%'^) >>"shutdown-%SERVER_NAME%.py" 
echo shutdown^('%SERVER_NAME%','Server', ignoreSessions='true', force='true'^) >>"shutdown-%SERVER_NAME%.py" 
echo exit^(^) >>"shutdown-%SERVER_NAME%.py"

------------------------------------------------------------------------


로그확인

------------------------------------------------------------------------

####<2017. 2. 22, 4:12:13,593 오후 KST> <Notice> <WebLogicServer> <eyshim-PC> <AdminServer> <[STANDBY] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <89b6ca7a-d225-4022-8e71-8bd937b38140-00000028> <1487747533593> <[severity-value: 32] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <BEA-000396> <Server shutdown has been requested by weblogic.> 
####<2017. 2. 22, 4:12:13,601 오후 KST> <Notice> <WebLogicServer> <eyshim-PC> <AdminServer> <[STANDBY] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <89b6ca7a-d225-4022-8e71-8bd937b38140-00000028> <1487747533601> <[severity-value: 32] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <BEA-000365> <Server state changed to FORCE_SUSPENDING.> 
####<2017. 2. 22, 4:12:13,619 오후 KST> <Notice> <WebLogicServer> <eyshim-PC> <AdminServer> <[STANDBY] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <89b6ca7a-d225-4022-8e71-8bd937b38140-00000028> <1487747533619> <[severity-value: 32] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <BEA-000365> <Server state changed to ADMIN.> 
####<2017. 2. 22, 4:12:13,621 오후 KST> <Notice> <WebLogicServer> <eyshim-PC> <AdminServer> <[STANDBY] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <89b6ca7a-d225-4022-8e71-8bd937b38140-00000028> <1487747533621> <[severity-value: 32] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN.> 
------------------------------------------------------------------------

Comments (+add yours?)

Tracbacks (+view to the desc.)

WebLogic Plugin Version 확인하기

View Comments

strings mod_wl_ohs.so | grep -i wlsplugins



위 와 같이 확인 하시면 좋습니다. 


수고하세요.

Comments (+add yours?)

Tracbacks (+view to the desc.)

FMW infrastructure Silent Mode 설치

View Comments

GUI모드 설치가 어려운 환경에서
FMW infrastructure를 설치해야 할 경우  Silent모드로 설치 해야 한다

명령어:java -jar distribution_name.jar -silent -responseFile file [-options] [(<CommandLinevariable=Value>)*]

EX)java -jar fmw_12.2.1.2.0_infrastructure.jar -silent -responseFile /home/wcp/install/sample.rsp

Response File은 설치 위치등을 갖고 있는 파일 인데 아래와 같다



[ENGINE] 
 
#DO NOT CHANGE THIS. 
Response File Version=1.0.0.0.0 
 
[GENERIC] 
 
#Set this to true if you wish to skip software updates 
DECLINE_AUTO_UPDATES=true 
 
#My Oracle Support User Name 
MOS_USERNAME= 
 
#My Oracle Support Password 
MOS_PASSWORD=<SECURE VALUE> 
 
#If the Software updates are already downloaded and available on your local system, then specify the path to the directory where these patches are available and set SPECIFY_DOWNLOAD_LOCATION to true 
AUTO_UPDATES_LOCATION= 
 
#Proxy Server Name to connect to My Oracle Support 
SOFTWARE_UPDATES_PROXY_SERVER= 
 
#Proxy Server Port 
SOFTWARE_UPDATES_PROXY_PORT= 
 
#Proxy Server Username 
SOFTWARE_UPDATES_PROXY_USER= 
 
#Proxy Server Password 
SOFTWARE_UPDATES_PROXY_PASSWORD=<SECURE VALUE> 
 
#The oracle home location. This can be an existing Oracle Home or a new Oracle Home 

ORACLE_HOME=/home/wcp/install/Oracle 

 
#Set this variable value to the Installation Type selected. e.g. Fusion Middleware Infrastructure, Fusion Middleware Infrastructure With Examples. 
INSTALL_TYPE=Fusion Middleware Infrastructure With Examples 
 
#Provide the My Oracle Support Username. If you wish to ignore Oracle Configuration Manager configuration provide empty string for user name. 
MYORACLESUPPORT_USERNAME= 
 
#Provide the My Oracle Support Password 
MYORACLESUPPORT_PASSWORD=<SECURE VALUE> 
 
#Set this to true if you wish to decline the security updates. Setting this to true and providing empty string for My Oracle Support username will ignore the Oracle Configuration Manager configuration 
DECLINE_SECURITY_UPDATES=true 
 
#Set this to true if My Oracle Support Password is specified 
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false 
 
#Provide the Proxy Host 
PROXY_HOST= 
 
#Provide the Proxy Port 
PROXY_PORT= 
 
#Provide the Proxy Username 
PROXY_USER= 
 
#Provide the Proxy Password 
PROXY_PWD=<SECURE VALUE> 
 
#Type String (URL format) Indicates the OCM Repeater URL which should be of the format [scheme[Http/Https]]://[repeater host]:[repeater port] 
COLLECTOR_SUPPORTHUB_URL= 
 
 
위의 내용에서 설치 위치만 변경 하여 돌리면 설치 된다
Silent
silent.PNG 112 KB View full-size Download

                                                              [SILENT MODE설치완료]




참고로 Response File을 GUI모드에서 다운로드 할 수 있다
Rsp
rsp.png 75.1 KB View full-size Download


상세문서링크


Comments (+add yours?)

Tracbacks (+view to the desc.)

Newer Entries Older Entries