성능 문제의 원인 판별

테스트 또는 프로덕션 환경에서 성능 문제가 발생하는 경우, Rule Execution Server 실행 스택, 환경(애플리케이션 서버, 네트워크, EJB 및 REST 등의 클라이언트 API) 또는 규칙 세트 실행을 호출하는 고객 코드 중 어디에서 문제가 발생하는지 판별하기 어려울 수 있습니다. 로그가 특정 정보를 수집하도록 설정하면 성능 문제점 원인의 범위를 좁히는 데 도움이 됩니다.

증상

테스트 또는 프로덕션 환경 내의 일부 규칙 세트 실행에 대해 예상보다 성능이 저하될 수 있습니다.

문제점 진단

오퍼레이션에 예상보다 시간이 오래 걸리는 경우, Rule Execution Server 실행 스택 컴포넌트가 로그 파일에 메시지를 쓰도록 요청할 수 있습니다. 그런 다음 규칙 세트 실행에 대한 성능 저하가 Rule Execution Server 실행 스택(규칙 세션 및 실행 단위) 또는 이를 호출한 코드 때문인지 판별할 수 있습니다.

지속 시간이 지정된 임계값보다 길면 메시지가 FINE 레벨에서만 작성됩니다. 지속 시간 임계값은 기본적으로 200ms이며 com.ibm.rules.res.log.durationthreshold 시스템 특성을 설정하여 이를 변경할 수 있습니다.
참고: 집중적인 로깅으로 시스템이 느려지지 않도록 이 값을 주의 깊게 설정해야 합니다.
예를 들어, 다음 메시지는 XU 레벨에서 규칙 세트의 실행을 호출하는 데 2초가 걸렸음을 표시합니다.
1/26/16 3:07:36 PM [FINE]      GBRXU6044I - -.- - The duration of the operation engineExecute is 2,084 ms.
다음 메시지는 XU 레벨에서 규칙 세트의 매개변수를 설정하는 데 234ms가 걸렸음을 표시합니다.
1/26/16 3:13:02 PM [FINE]      GBRXU6044I - -.- - The duration of the operation engineSetParameters is 234 ms.
규칙 세션 레벨에서 다음 메시지를 볼 수 있습니다.
GBRXR0032I: The duration of the execution of the rule session is longer than expected.
GBRXR0033I: The duration for setting the parameters as XOM BOM is longer than expected. 
GBRXR0034I: The duration for getting the parameters as XOM BOM is longer than expected. 
GBRXR0035I: The duration for storing the decision warehouse trace is longer than expected. 
GBRXR0036I: The duration for invoking the pre-interceptor is longer than expected. 
GBRXR0037I: The duration for invoking the post-interceptor is longer than expected. 
다음 메시지는 XU 레벨에서 유용한 기타 메시지 코드입니다.
GBRXU6022I: Indicates the duration for loading a ruleset. This message is written at INFO level and does not depend on the duration threshold.
GBRXU6044I: The duration of the operation XXX is longer than expected.
GBRXU6045I: Indicates a longer duration than expected for retrieving a XU connection