2014-07-20 2 views
1

배경 정보ColdFusion에서 10/11 통계 로깅 문제

난 그냥 최근에 생산 ColdFusion에서 10 서버에 이러한 오류를하기 시작 : 내가 건너 온 구글과 몇 시간을 소비 한 후

Service Temporary Unavailable! 

    The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. 

    Jakarta/ISAPI/isapi_redirector/1.2.32() 

어도비 포럼에이 스레드 :

https://forums.adobe.com/thread/1016323?start=0&tstart=0

가있다 이 스레드에서 많은 정보가 있지만 두 영역에 집중했습니다.

  1. 스레드/세션/메모리 메트릭의 현재 사용법을 확인하십시오.

  2. 내 목표는이 블로그 게시물을 마무리했다

조정에 ColdFusion에서 IIS 커넥터 구성을 메트릭 정보를 사용하여 블로그 게시물이에 참조 된 http://blogs.coldfusion.com/post.cfm/tuning-coldfusion-10-iis-connector-configuration

버그를보고 : https://bugbase.adobe.com/index.cfm?event=bug&id=3318104

문제점

저는 현재 # 1에 머물러 있습니다. 스레드/세션/메모리 메트릭의 현재 사용량을 가져옵니다.

확인 : CFadmin> 디버깅 & 로깅> 디버그 출력 설정> 메트릭 로깅 사용을 선택합니다.

ColdFusion에서 10 metrics.log :는 ColdFusion 11 개발 서버에서

"Information","scheduler-1","07/20/14","15:12:24",,"Max threads: null Current thread count: null Current thread busy: null Max processing time: null Request count: null Error count: null Bytes received: null Bytes sent: null Free memory: 1055964040 Total memory: 1570766848 Active Sessions: 679" 
    "Information","scheduler-1","07/20/14","15:13:24",,"Max threads: null Current thread count: null Current thread busy: null Max processing time: null Request count: null Error count: null Bytes received: null Bytes sent: null Free memory: 1136605536 Total memory: 1572864000 Active Sessions: 674" 
    "Information","scheduler-1","07/20/14","15:14:24",,"Max threads: null Current thread count: null Current thread busy: null Max processing time: null Request count: null Error count: null Bytes received: null Bytes sent: null Free memory: 939095720 Total memory: 1572339712 Active Sessions: 673" 

나는 켜져 메트릭 그것을보고 무엇을보고 바로 로깅 활성화합니다. 해당 파일의 metrics.log는 다음과 같습니다.

"Information","scheduler-1","07/20/14","15:20:59",,"Max threads: null Current thread count: null Current thread busy: null Max processing time: null Request count: null Error count: null Bytes received: null Bytes sent: null Free memory: 589971080 Total memory: 1320157184 Active Sessions: 40" 
    "Information","scheduler-2","07/20/14","15:21:59",,"Max threads: null Current thread count: null Current thread busy: null Max processing time: null Request count: null Error count: null Bytes received: null Bytes sent: null Free memory: 583831160 Total memory: 1320157184 Active Sessions: 41" 
    "Information","scheduler-2","07/20/14","15:22:59",,"Max threads: null Current thread count: null Current thread busy: null Max processing time: null Request count: null Error count: null Bytes received: null Bytes sent: null Free memory: 907572096 Total memory: 1431830528 Active Sessions: 40" 

문제는 거의 모든 정보가 "null"로 되돌아 오는 것입니다.

ColdFusion에서 10 환경 : 윈도우 서버 2008 R2, ColdFusion에서 10 표준 64 비트, 자바 7u60

ColdFusion에서 11 환경 : 윈도우 서버 2012 R2, ColdFusion에서 11 표준 64 비트, 자바 7u65

추가 참고

이는 ColdFusion-오류가 발견되었다.ColdFusion에서 10 로그온 (아니지만 CF 11) :

java.lang.NullPointerException 
     at coldfusion.server.jrun4.metrics.SimpleLoadMetric.run(SimpleLoadMetric.java:157) 
     at coldfusion.scheduling.ThreadPool.run(ThreadPool.java:211) 
     at coldfusion.scheduling.WorkerThread.run(WorkerThread.java:71) 

[질문

이 사람이 실제로 사용되는 스레드를보고 로깅 통계를 사용 얻는 방법을 알고 있나요?
첫 번째 링크에서 "carl type3"은 그의 metrics.log 파일 샘플을 게시했으며 얻고 자하는 모든 정보를 가지고 있습니다.

CF 관리 지표 설정

ColdFusion 10/11 Metrics Settings

ColdFusion에서 10 workers.properties :

worker.list=cfusion 

    worker.cfusion.type=ajp13 
    worker.cfusion.host=localhost 
    worker.cfusion.port=8012 
    worker.cfusion.max_reuse_connections=250 
    worker.cfusion.connection_pool_size=500 
    worker.cfusion.connection_pool_timeout=60 

ColdFusion에서 10 server.xml의 커넥터 :

<Connector port="8012" protocol="AJP/1.3" redirectPort="8445" tomcatAuthentication="false" maxThreads="500" connectionTimeout ="60000" /> 

답변

1

CF 관리자에서 설정해야하는 올바른 포트는 cfusion의 server.xml에서 찾을 수 있습니다.

IIS를 프론트 엔드 웹 서버로 사용하는 대부분의 설정에서는 8012이므로 CF 관리자에서이 설정을이 값으로 변경해야합니다. ColdFusion을 다시 시작하면 메트릭 로그뿐 아니라 마침내 cfstat에서 일부 값을 볼 수 있습니다.

+0

필자에게 CF10은 8012를 사용했으며 CF11은 8014를 사용했습니다. –

+1

8012/8014 포트는 ColdFusion의 내부 포트입니다. 같은 것을 CF 관리자에서 사용해서는 안됩니다. –

+0

이 포트를 80으로 설정하면 효과가있었습니다. 정보 주셔서 감사합니다! –

2

하는 메트릭 loggi을 활성화하려면 예 : 디버그 & 로깅> 디버그 출력 설정으로 이동 한 다음 아래에 강조 표시된 값을 업데이트하십시오.

enter image description here

은 "최대 스레드"

메트릭 로그가 설정되지 않은, 더 추론 당신의 로그에서 null 값을 보여줍니다. Current Thread Count를 connection_pool_size에 대한 입력으로 사용하고 max_reuse_connections를 설정하십시오. http://blogs.coldfusion.com/post.cfm/coldfusion-11-iis-connector-tuning에서 제안한대로 server.xml에 connectionTimeout 및 maxThreads를 추가해야합니다. 이것은 CF10에도 적용됩니다.

+0

cfstat의 "커넥터 포트"에 8501을 사용하도록 CF Admin을 업데이트했습니다 (유일한 차이점). 서버를 재부팅하고 모든 스레드 메트릭에 대해 null이 계속 표시됩니다. 질문에 CF 10 서버 구성 정보를 포함 시켰습니다. CF 11 서버의 값은 같습니다. 이 값은 재부트 전에 제 위치에 있습니다. –

+0

또한 CF 11 IIS 커넥터 튜닝 링크를 이용해 주셔서 감사합니다. –

+1

포트를 80 (웹 서버가 실행되는 포트)로 변경하고 CF 서비스를 다시 시작하십시오. 이 경우 작동하지 않으며 8501로 되돌리고 변경 사항을 제출 한 다음 CF 서비스를 다시 시작하십시오. –