문서유형ㅣ기술정보
분야ㅣ 관리/환경설정
적용제품버전ㅣ T6, T7
문서번호ㅣTADTI170
개요
운영 중 잘못된 라이브러리를 사용하여 기동되거나, 잘못된 리소스 제한 값을 가지고 기동되는 상황을 확인하기 위한 방법을 설명합니다.
방법
문제 CASE
CASE1 : 데이터 작업 중 환경 변수 확인
tbloader 또는 tbSQL 유틸리티(tbCLI)를 사용하여 대용량 데이터 작업을 수행하는 중, 클라이언트의 CHARSET을 확인하고자 할 때 사용합니다.
CASE2 : Tibero 엔진과 ProSync 엔진을 함께 사용하는 경우 라이브러리 경로 확인
설치 이후 Tibero 프로세스가 어떤 라이브러리 경로를 사용하여 기동되었는지 확인하고자 할 때 사용합니다.
CASE3 : 기동된 Tibero 프로세스의 ulimit 값 확인
Tibero 프로세스의 리소스 제한 값을 확인하고자 할 때 사용합니다.
CASE4 : Tibero 외 프로세스의 환경 변수 및 ulimit 값 확인
Tibero 프로세스에 정상적인 환경 변수 경로가 적용되었는지 확인하기 위해, 관련 프로세스의 환경 변수 및 ulimit 값을 확인하고자 할 때 사용합니다.
CASE 별 확인방법
CASE1&2: 데이터 작업 중 환경 변수 확인 / 라이브러리 경로 확인
프로세스를 조회한 후, 해당 프로세스의 /proc/[PID]/environ 파일을 확인합니다.
$ ps -ef |grep tbsvr
tibero 411295 1 2 17:30 pts/13 00:00:00 tbsvr -t NORMAL -SVR_SID TEST
tibero 411299 411295 0 17:30 pts/13 00:00:00 tbsvr_MGWP -t NORMAL -SVR_SID TEST
tibero 411300 411295 0 17:30 pts/13 00:00:00 tbsvr_FGWP000 -t NORMAL -SVR_SID TEST
tibero 411301 411295 0 17:30 pts/13 00:00:00 tbsvr_FGWP001 -t NORMAL -SVR_SID TEST
tibero 411302 411295 0 17:30 pts/13 00:00:00 tbsvr_PEWP000 -t NORMAL -SVR_SID TEST
tibero 411303 411295 0 17:30 pts/13 00:00:00 tbsvr_PEWP001 -t NORMAL -SVR_SID TEST
tibero 411304 411295 0 17:30 pts/13 00:00:00 tbsvr_PEWP002 -t NORMAL -SVR_SID TEST
tibero 411305 411295 0 17:30 pts/13 00:00:00 tbsvr_PEWP003 -t NORMAL -SVR_SID TEST
tibero 411306 411295 0 17:30 pts/13 00:00:00 tbsvr_PEWP004 -t NORMAL -SVR_SID TEST
tibero 411307 411295 5 17:30 pts/13 00:00:00 tbsvr_AGNT -t NORMAL -SVR_SID TEST
tibero 411308 411295 0 17:30 pts/13 00:00:00 tbsvr_DBWR -t NORMAL -SVR_SID TEST
tibero 411309 411295 0 17:30 pts/13 00:00:00 tbsvr_RCWP -t NORMAL -SVR_SID TEST
$ strings /proc/411295/environ
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.m4a=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.oga=01;36:*.opus=01;36:*.spx=01;36:*.xspf=01;36:
LD_LIBRARY_PATH=/tibero/user/seungah_ham/test/unixODBC-2.3.12/unixODBC/lib:/tibero/user/seungah_ham/test/tibero7/lib:/tibero/user/seungah_ham/test/tibero7/client/lib:
ODBCINI=/tibero/user/seungah_ham/test/unixODBC-2.3.12/unixODBC/config/odbc.ini
MODULES_RUN_QUARANTINE=LD_LIBRARY_PATH LD_PRELOAD
LANG=en_US.UTF-8
HISTCONTROL=ignoredups
HOSTNAME=ENT-ROCKY8
OLDPWD=/tibero/user/seungah_ham
S_COLORS=auto
which_declare=declare -f
MODULES_CMD=/usr/share/Modules/libexec/modulecmd.tcl
USER=tibero
PWD=/tibero/user/seungah_ham/test
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
HOME=/tibero/user/seungah_ham/test
TB_HOME=/tibero/user/seungah_ham/test/tibero7
XDG_DATA_DIRS=/home/tibero/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
ODBCSYSINI=/tibero/user/seungah_ham/test/unixODBC-2.3.12/unixODBC/config
LOADEDMODULES=
MAIL=/var/spool/mail/tibero
TERM=xterm
SHELL=/bin/bash
TBINARY_PATH=/tibero/user/seungah_ham/tbinary
UNIXODBC_HOME=/tibero/user/seungah_ham/test/unixODBC-2.3.12/unixODBC
TBCLI_WCHAR_TYPE=UCS2
SHLVL=1
MANPATH=:
MODULEPATH=/etc/scl/modulefiles:/usr/share/Modules/modulefiles:/etc/modulefiles:/usr/share/modulefiles
LOGNAME=tibero
MODULEPATH_modshare=/usr/share/Modules/modulefiles:2:/etc/modulefiles:2:/usr/share/modulefiles:2
TB_SID=TEST
PATH=/tibero/user/seungah_ham/test/unixODBC-2.3.12/unixODBC/bin:.:/tibero/user/seungah_ham/test/tibero7/bin:/tibero/user/seungah_ham/test/tibero7/client/bin:.:/tibero/tbinary:/home/tibero/.local/bin:/home/tibero/bin:/usr/share/Modules/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/tibero/user/seungah_ham/test/.local/bin:/tibero/user/seungah_ham/test/bin
DEBUGINFOD_URLS=https://debuginfod.centos.org/
MODULESHOME=/usr/share/Modules
HISTSIZE=1000
CASE3&4: 프로세스의 ulimit 값 확인
1. 현재 세션에서 실행 중인 프로세스에 대한 ULIMIT 값
$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 158653
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 300000
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 116384
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
2. Tibero 프로세스에 대한 ULIMIT 값
$ cat /proc/411295/limits
Limit Soft Limit Hard Limit Units
Max cpu time unlimited unlimited seconds
Max file size unlimited unlimited bytes
Max data size unlimited unlimited bytes
Max stack size 8388608 unlimited bytes
Max core file size 0 unlimited bytes
Max resident set unlimited unlimited bytes
Max processes 116384 163840 processes
Max open files 300000 300000 files
Max locked memory 65536 65536 bytes
Max address space unlimited unlimited bytes
Max file locks unlimited unlimited locks
Max pending signals 158653 158653 signals
Max msgqueue size 819200 819200 bytes
Max nice priority 0 0
Max realtime priority 0 0
Max realtime timeout unlimited unlimited us