Automation Service 의 Heap 메모리 늘리기

View Comments

드물지만, 대량 데이터를 처리해야 하는 경우 WCI 의 자동화 서비스 (또는 Automation Service) 가 이상 현상을 보이는 경우가 있다. 

이런 경우 자동화 서비스가 OOM 상태로 빠져서 아무 응답도 하지 않는 경우가 많은데, 이럴때는 Heap 메모리를 늘려서 자동화 서비스를 재시작 하면 문제가 해결되기도 한다.

다음은 자동화서비스의 Heap 을 늘리는 방법을 설명 한다. (기준은 WCI 10.3.3)


1. ~wci/settings/configuration.xml 파일을 편집기로 열어서, 다음 영역을 찾는다

<component name="automation:server" type="http://www.plumtree.com/config/component/types/automation">

2. 해당 영역에는 자동화 서버에 대한 jvm 구성들이 나열 되어 있는데, 자동화 서비스가 동작하는 플랫폼에 맞는 곳의 옵션을 수정한다.

<setting name="automation-server:jvm-aix">
    <value xsi:type="xsd:string">-server -Xms32m -Xmx512m</value>
</setting>

3. configuration.xml 을 저장한다.

4. ~wci/ptportal/10.3.3/bin/automationserverd.sh 를 편집기로 열어서, 다음 영역을 찾는다.

rem default settings:
set JVM_1=-Xms16m -Xmx256m -Xgc:singlepar

5. 역시 -Xms 와 -Xmx 값을 적당히 높여서 저장한다.

6. ~wci/ptportal/10.3.3/bin/automationserverd.sh restart 등의 명령으로 자동화 서비스를 재시작 한다. 

Comments (+add yours?)

Tracbacks (+view to the desc.)

Job이 실패후 Operation supporting pulse is unresponsive 에러를 낼때

View Comments

한번 문제 생긴건 정리를 해놔야 다시 안까먹을듯 ??

H화재에서 발생된 사례이다

Search Update 1 과  house keeping job  이 돌면서

" Operation supporting pulse is unresponsive" 라는 에러를 내밷으며 실패가 될때가 있다

이 에러는 작업 업데이트를 기다리는 동안  타임 아웃이 되었음을 의미 한다.


해결방법

settings/configration.xml 을 열고 

'max-pulse-timeout' 항목을 찾는다 해당 수치의 기본 1800이다 적정 시간을 늘려준다


 <setting name="automation-server:max-pulse-timeout">

        <value xsi:type="xsd:integer">1800</value>

 </setting>


난 그냥 두배 늘렸다 --;

Automation Server를 재기동 하고 확인해 보자

잘돌아가나?







Comments (+add yours?)

Tracbacks (+view to the desc.)

CustomSSO개발시 session 개체 사용법

View Comments

WCI프로젝트중 SSO방식이 쿠키방식과 session방식을 혼용 및 session방식만 사용하는 sso가 있다.

포탈에서도 WCI portalconfig.xml중 

<component name="portal:SSOVendor" type="http://www.plumtree.com/config/component/types/portal/ssovendor">

        <!-- The following are just sample settings -->

        <setting name="HeaderType">

            <value xsi:type="xsd:string">COOKIE</value>

        </setting>


이 값을 COOKIE로 사용한다고 쿠키를 생성하는 경우가 다반사다

HeaderType 이 COOKIE라서 WCI내부에서 사용하는 부분을 COOKIE로 처리하는 것이지

인증을 위하여 COOKIE를 사용하라는 이야기가 아니다, 우리가 잘못 오해하는 부분이다.


session방식인데 로그인후 포탈로그인 아이디를 얻기위해 쿠키를 구어

CustomSSO에서 XPCookie를 이용하여 아이디를 가져오는 방식은 잘못된 방식 이다.


그럼 어찌 바꿀까?

개체중 IXPSession개체가 있다 


public SSOLoginInfo GetLoginInfo(IXPRequest request) {

IXPSession session=request.GetSession();

ssoid=(String)session.GetAttribute("ID"); <--SSO에서 지정한 사용자 ID

      .

.

.

 if(ssoid!= null)

     return new SSOLoginInfo("PrefixHeader", ssoid, sPassword);

 else

  return null;


끝. ㅋㅋㅋ







Comments (+add yours?)

Tracbacks (+view to the desc.)

Search Server의 로그 삭제 (cadmin)

View Comments


Search Server의 로그를 삭제하기 위해서, cadmin 명령어를 사용합니다.

하지만, cadmin이 정상작동하지 않을때 다음과 같은 방법을 사용하면 됩니다.

<오류사항>

[potlap1:/alui/G6/ptsearchserver/6.1/bin #] cadmin runlevel standby

Setting NODEHOME to /alui/G6/ptsearchserver/6.1/potlap101/

Using '/alui/G6/ptsearchserver/6.1/cluster' as CLUSTER_HOME

topology:

potlap101, partition 0, 172.20.2.44:15250

Sent SETNODESTATUS to potlap101 successfully

waiting 15 seconds before getting status...

Time               : 2011-11-29T15:43:29-09:00

Docset TID         : 0_1_0

Lexicon TID        : 0_1_0

Checkpoint TID     : Invalid

Query/Index States : unavailable/unavailable

Cluster home kBytes used: 5, free: 902970

potlap101 0 172.20.2.44:15250 0_83_44146 0_83_44146 standby

 

[potlap1:/alui/G6/ptsearchserver/6.1/bin #] cadmin purge -remove

Setting NODEHOME to /alui/G6/ptsearchserver/6.1/potlap101/

Using '/alui/G6/ptsearchserver/6.1/cluster' as CLUSTER_HOME

topology:

potlap101, partition 0, 172.20.2.44:15250

This command will empty the entire cluster of documents.  Are you sure

you want to do this? (Y/N):Placing all nodes into READONLY mode...

Failed!  Unexpected exception while sending SETNODESTATUS to potlap101, Error during response parsing: admin element missing state attribute.

Failed -- couldn't place node potlap101 into READONLY mode 


다음과 같이 실행합니다.

 1.  Search 서비스 중지

2.  다음의 폴더 하위의 파일 삭제

Ÿ /requests/

Ÿ /repartitions/

Ÿ /checkpoints/

3.  Index 폴더 하위의 “1” 폴더 하위의 파일 삭제

Ÿ ~/ptsearchserver/6.1/index/1

4.  ~/ptsearchserver/6.1/index/1 위치에서 다음 명령어를 실행

Ÿ ~/bin/native/emptyarchive lexicon archive

Ÿ ~bin/native/emptyarchive spell spell

 5. Search 서비스 기동 


참조 사이트 : https://forums.oracle.com/forums/thread.jspa?threadID=867714



Comments (+add yours?)

Tracbacks (+view to the desc.)

WCI - PTJOBLOGS

View Comments

참고 : 본 문서는 Funtion1.com의 "Crazy Database Growth? Check your PTJOBLOGS table." 글을 참조하였습니다.

WebCenter Interaction(구 ALUI)를 사용하면서 다음과 같은 문제가 발생하였을 때 해결 방법이다.

PTJOBLOGS 테이블의 크기가 무한 증가하여 데이터베이스 용량이 가득 찼다.
 
일단 위의 상황이 발생하였을 때 PTJOBLOGS 테이블을 날려버려도 상관 없다는게 결론이다.

truncate table ptjoblogs

명령으로 날려버리면 그만~~ ㅎㅎ

그러나 매번 증가되는 테이블을 날려버릴 수는 없는 상황이므로 다음과 같은 해결책이 있다.

1. WebCenter Interaction(구 ALUI)의 기본 설정은 작업 로그를 60일까지 보관한다.
2. 그러나 UI에서는 해당 로그 보관 일자를 변경하지 못한다.
3. PTSERVERCONFIG 테이블의 SETTINGID = 15 열의 VALUE 필드를 살펴보면
4. 60으로 세팅되어있다.
5. 이 값을 적절히 수정하여 줄인다. 
6. 7정도?

   또한 로그 기록을 60일 이상 보관하고 싶다면 그 이상의 값으로 변경도 가능하다.

Comments (+add yours?)

Tracbacks (+view to the desc.)

Newer Entries Older Entries