728x90
반응형
※ 6버전 기준은 아래 참고
https://waspro.tistory.com/319
[WildFly] 운영자 검검 리스트
본 포스팅에서는 WildFly(JBoss) 점검리스트에 대해 알아보겠습니다. 정기적으로 수행하는 간단한 확인만으로 현재 운영중에 있는 WildFly의 상태를 모니터링 할 수 있습니다. 이번 내용에서는 JBoss 6
waspro.tistory.com
1. 버전 확인
./jboss-cli.sh --connect --controller=192.168.56.101:9990
[standalone@192.168.56.101:9990 /] version
2. 힙메모리
/core-service=platform-mbean/type=memory:read-resource(include-runtime=true)
3. 서비스 uptime
/core-service=platform-mbean/type=runtime:read-attribute(name=start-time)
아래 명령어로 변환하여 확인
date -d @$(echo "1751866943302 / 1000" | bc)
4. Thread 상태 확인
/core-service=platform-mbean/type=threading:read-resource(include-runtime=true)
(...중간 생략...)
항목 설명)
all-thread-ids | 현재 실행 중인 스레드 ID 목록 |
thread-count | 현재 실행 중인 스레드 수 |
peak-thread-count | 서버 시작 이후 동시에 존재했던 최대 스레드 수 |
total-started-thread-count | 서버 시작 이후 총 생성된 스레드 수 |
daemon-thread-count | 현재 실행 중인 데몬 스레드 수 |
thread-cpu-time-enabled | JVM이 스레드별 CPU 시간 측정을 활성화했는지 여부 |
current-thread-cpu-time | CLI 요청을 실행한 스레드의 누적 CPU 시간 (ns) |
current-thread-user-time | 위 스레드의 사용자 모드에서의 시간 (ns) |
object-monitor-usage-supported | 스레드가 어떤 객체를 모니터링하고 있는지 지원 여부 |
thread-contention-monitoring-supported | 락 경합 모니터링 가능 여부 |
4-1. 특정 Thread 상태 확인
ex) Thread id가 153인 경우
/core-service=platform-mbean/type=threading:get-thread-info(id=153)
5. DataSource 상태 확인
/subsystem=datasources:read-resource
5-1. 특정 DataSource 상태 확인
/subsystem=datasources/data-source=PostgresDS:read-resource(include-runtime=true)
5-2. 모든 DataSource 상태 확인
/subsystem=datasources:read-resource(include-runtime=true, recursive=true)
5-3. Connection Pool 관련 통계 확인
/subsystem=datasources/data-source=PostgresDS/statistics=pool:read-resource(include-runtime=true)
※ 통계 관련 활성화가 안되어 있다면 다음과 같이 통계 활성화
/subsystem=datasources/data-source=postgresDS:write-attribute(name=statistics-enabled, value=true)
항목 설명)
ActiveCount | 현재 커넥션 풀에서 사용 중인 연결 수 |
AvailableCount | 커넥션 풀에 즉시 사용할 수 있는 커넥션 수 |
MaxUsedCount | 서버 시작 이후 동시에 사용된 최대 커넥션 수 |
CreatedCount | 생성된 커넥션 수 (누적) |
DestroyedCount | 제거된 커넥션 수 (누적) |
TimedOut | 커넥션 획득 대기 중 타임아웃 발생 횟수 |
InUseCount | 현재 사용 중인 커넥션 수 |
MaxWaitCount | 대기 중 커넥션을 가장 많이 기다린 요청 수 |
AverageWaitTime | 커넥션 획득 평균 대기 시간 (ms) |
MaxWaitTime | 커넥션 획득 최대 대기 시간 (ms) |
728x90
반응형
'WAS > JBOSS_WILDFLY' 카테고리의 다른 글
[ERROR] ISPN000136: Error executing command / ISPN000299: Unable to acquire lock after 15 seconds for key (3) | 2025.07.09 |
---|---|
15. postgreSQL 데이터소스 설정 (cli 방식) (3) | 2025.07.07 |
14. 클러스터링 (0) | 2025.07.03 |
13. [standalone] 배포 (2) | 2025.06.30 |
12. 서버 blocking 옵션 설정 (0) | 2023.12.15 |