본문 바로가기

0과 1 그 끝없는 세상/Middleware

[JEUS] DB Connection Pool 보는 방법


1. JEUS Version 확인
[jeus@localhost / ]> jeusadmin -version
JEUS prepend classpath : file:/app/jeus5-nts/lib/system/jext_prepend.jar
JEUS prepend classpath : file:/app/jeus5-nts/lib/system/jext.jar
JEUS 5.0 (fix #23)

2. JEUS Container List 확인
[jeus@localhost / ]> which ja
/app/jeus5-nts/bin/ja
- ja 스크립트의 내용
jeusadmin `hostname` -Uadministrator -Pjeusadmin

[jeus@localhost / ]> ja
JEUS prepend classpath : file:/app/jeus5-nts/lib/system/jext_prepend.jar
JEUS prepend classpath : file:/app/jeus5-nts/lib/system/jext.jar
JEUS 5.0 (fix #23) Jeus Manager Controller
localhost>conlist 
container list of the node dbtbap1
localhost_container3
localhost_container2
localhost_container1
localhost>quit

3. 각 Container 별 DB Connection Pool 사용 현황 확인
[jeus@localhost / ]> which da
/app/jeus5-nts/bin/da
- da 스크립트의 내용 (da 1, da 2, da 3 과 같이 Container 번호를 입력하여 사용)
dbpooladmin `hostname`_container$1 -Uadministrator -Pjeusadmin
[jeus@localhost / ]> da 1
JEUS prepend classpath : file:/app/jeus5-nts/lib/system/jext_prepend.jar
JEUS prepend classpath : file:/app/jeus5-nts/lib/system/jext.jar
[ConnectionPoolController] JEUS 5.0 (fix #23) DB Connection Pool Controller
localhost_container1>info
===========================================================
id     name       min  max  current  idle  waiting   working
===========================================================
1 PSSRVCTI        4    4    4      4     true      true
2 PSSRV28         27   27   27     27    true      true
3 PSSMS1          5    5    5      5     true      true
4 PSCAR           15   15   15     14    true      true
5 PSSRV22         27   27   27     27    true      true
6 PSCOMMON        10   10   10     10    true      true
===========================================================
localhost_container1>quit

[jeus@localhost / ]> da 2
JEUS prepend classpath : file:/app/jeus5-nts/lib/system/jext_prepend.jar
JEUS prepend classpath : file:/app/jeus5-nts/lib/system/jext.jar
[ConnectionPoolController] JEUS 5.0 (fix #23) DB Connection Pool Controller
localhost_container2>info
===========================================================
id     name       min  max  current  idle  waiting   working
===========================================================
1 PSSRV22         27   27   27     27    true      true
2 PSSRV42         12   12   12     12    true      true
3 PSSRV21         5    5    5      5     true      true
4 PSSRV41         10   10   10     9     true      true
5 PSSRV61         10   10   10     9     true      true
6 PSSRV99         0    2    1      0     true      true
7 PSSRVCTI        4    4    4      4     true      true
8 PSCAR           15   15   15     15    true      true
9 PSSMS61         4    4    4      4     true      true
10PSCOMMON        10   10   10     9     true      true
11PSSRV11         20   20   20     20    true      true
12PSSRV32         14   14   14     14    true      true
13PSSRV28         27   27   27     27    true      true
14PSSMS1          5    5    5      5     true      true
===========================================================
localhost_container2>quit

[jeus@localhost / ]> da 3
JEUS prepend classpath : file:/app/jeus5-nts/lib/system/jext_prepend.jar
JEUS prepend classpath : file:/app/jeus5-nts/lib/system/jext.jar
[ConnectionPoolController] JEUS 5.0 (fix #23) DB Connection Pool Controller
localhost_container3>info
===========================================================
id     name       min  max  current  idle  waiting   working
===========================================================
1 PSSRV42         12   12   12     12    true      true
2 PSSRV41         10   10   10     10    true      true
3 PSSRV11         20   20   20     20    true      true
4 PSSRV99         0    2    2      2     true      true
5 PSSRV97         0    2    1      1     true      true
6 PSSRV28         27   27   27     27    true      true
7 PSSRV96         0    2    1      1     true      true
8 PSSRV94         0    2    1      1     true      true
9 PSSRV92         0    2    1      1     true      true
10PSSRV91         0    2    1      1     true      true
11PSSRV22         27   27   27     27    true      true
12PSMAGAM         5    5    5      5     true      true
13PSSRV21         5    5    5      5     true      true
14PSCAR           15   15   15     15    true      true
15PSSMS1          5    5    5      5     true      true
16PSSRV61         10   10   10     10    true      true
17PSCOMMON        10   10   10     10    true      true
18PSSMS61         4    4    4      4     true      true
19PSSRV32         14   14   14     13    true      true
===========================================================
localhost_container3>quit
 
4. 내용 설명 : JEUSMain.xml 파일에 정의된 값이다.
- name : JNDI명
- min : 최소 DB Connection Pool
- max : 최대 DB Connection Pool
- current : 현재 사용 세션 수