====== tomcat shutdown.sh 시 정상동작 하지 않을 경우 ====== tomcat blocking issue ===== 방법1 ===== - O/S별 환경변수 설정 ==== LINUX ==== - JAVA_OPTS 설정 JAVA_OPTS="$JAVA_OPTS -Djava.security.egd=file:/dev/./urandom" ==== Windows ==== - 내컴퓨터 > 고급 시스템 설정 > 고급 > 환경 변수(N).. > 시스템 변수(S) > 새로 만들기(W).. - 변수 이름(N) : JAVA_OPTS - 변수 값(V) : %JAVA_OPTS% -Djava.security.egd=file:/dev/./urandom ===== 방법2 ===== - java.security 설정 - ecurerandom.source 소스 수정 - (기존) securerandom.source=file:/dev/./random - (변경) securerandom.source=file:/dev/./urandom ^ JDK 8 이하 | $JAVA_HOME/jre/lib/security/java.security | ^ JDK 9 이상 | $JAVA_HOME/conf/security/java.security | ===== 원인 ===== - JAVA 버그로 /dev/urandom 을 인식하지 못하고, /dev/./urandom 으로 처리해야 할때도 있음.