반응형
# Access-log X-Forwarded-For 설정
# JStack 을 통한 Thread 분석
기본 OPENJDK-JRE에는 tool bin 이 없으므로 아래와 같이 devel 버전을 깔아야함.
Open-Jdk가 설치된 위치에서 실행 할 때 기존 내용에 업데이트 된다.
# jstack 설치
yum list "java-1.8.0-openjdk*"
yum install java-1.8.0-openjdk-devel.x86_64
1. PID 확인
ps -ef | grep java
or
jps -v
2. dump
root@localhost> jstack PID > filename.dump
3. jstack dump 분석
https://fastthread.io/
4. jstack 분석 방법
https://ijbgo.tistory.com/33
==== 설치 로그 ====
[root@locahost jvm]# yum install java-1.8.0-openjdk-devel.x86_64
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
base | 3.6 kB 00:00:00
extras | 2.9 kB 00:00:00
updates | 2.9 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package java-1.8.0-openjdk-devel.x86_64 1:1.8.0.312.b07-1.el7_9 will be installed
--> Processing Dependency: java-1.8.0-openjdk(x86-64) = 1:1.8.0.312.b07-1.el7_9 for package: 1:java-1.8.0-openjdk-devel-1.8.0.312.b07-1.el7_9.x86_64
--> Running transaction check
---> Package java-1.8.0-openjdk.x86_64 1:1.8.0.282.b08-1.el7_9 will be updated
---> Package java-1.8.0-openjdk.x86_64 1:1.8.0.312.b07-1.el7_9 will be an update
--> Processing Dependency: java-1.8.0-openjdk-headless(x86-64) = 1:1.8.0.312.b07-1.el7_9 for package: 1:java-1.8.0-openjdk-1.8.0.312.b07-1.el7_9.x86_64
--> Running transaction check
---> Package java-1.8.0-openjdk-headless.x86_64 1:1.8.0.282.b08-1.el7_9 will be updated
---> Package java-1.8.0-openjdk-headless.x86_64 1:1.8.0.312.b07-1.el7_9 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================================================================================================
Installing:
java-1.8.0-openjdk-devel x86_64 1:1.8.0.312.b07-1.el7_9 updates 9.8 M
Updating for dependencies:
java-1.8.0-openjdk x86_64 1:1.8.0.312.b07-1.el7_9 updates 313 k
java-1.8.0-openjdk-headless x86_64 1:1.8.0.312.b07-1.el7_9 updates 33 M
Transaction Summary
==============================================================================================================================================================================================================
Install 1 Package
Upgrade ( 2 Dependent packages)
Total download size: 43 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/3): java-1.8.0-openjdk-1.8.0.312.b07-1.el7_9.x86_64.rpm | 313 kB 00:00:00
(2/3): java-1.8.0-openjdk-devel-1.8.0.312.b07-1.el7_9.x86_64.rpm | 9.8 MB 00:00:00
(3/3): java-1.8.0-openjdk-headless-1.8.0.312.b07-1.el7_9.x86_64.rpm | 33 MB 00:00:00
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 64 MB/s | 43 MB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : 1:java-1.8.0-openjdk-headless-1.8.0.312.b07-1.el7_9.x86_64 1/5
warning: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.312.b07-1.el7_9.x86_64/jre/lib/security/java.security created as /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.312.b07-1.el7_9.x86_64/jre/lib/security/java.security.rpmnew
restored /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.312.b07-1.el7_9.x86_64/jre/lib/security/java.security.rpmnew to /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.312.b07-1.el7_9.x86_64/jre/lib/security/java.security
Updating : 1:java-1.8.0-openjdk-1.8.0.312.b07-1.el7_9.x86_64 2/5
Installing : 1:java-1.8.0-openjdk-devel-1.8.0.312.b07-1.el7_9.x86_64 3/5
Cleanup : 1:java-1.8.0-openjdk-1.8.0.282.b08-1.el7_9.x86_64 4/5
Cleanup : 1:java-1.8.0-openjdk-headless-1.8.0.282.b08-1.el7_9.x86_64 5/5
Verifying : 1:java-1.8.0-openjdk-devel-1.8.0.312.b07-1.el7_9.x86_64 1/5
Verifying : 1:java-1.8.0-openjdk-1.8.0.312.b07-1.el7_9.x86_64 2/5
Verifying : 1:java-1.8.0-openjdk-headless-1.8.0.312.b07-1.el7_9.x86_64 3/5
Verifying : 1:java-1.8.0-openjdk-1.8.0.282.b08-1.el7_9.x86_64 4/5
Verifying : 1:java-1.8.0-openjdk-headless-1.8.0.282.b08-1.el7_9.x86_64 5/5
Installed:
java-1.8.0-openjdk-devel.x86_64 1:1.8.0.312.b07-1.el7_9
Dependency Updated:
java-1.8.0-openjdk.x86_64 1:1.8.0.312.b07-1.el7_9 java-1.8.0-openjdk-headless.x86_64 1:1.8.0.312.b07-1.el7_9
Complete!
반응형
'Java & Spring' 카테고리의 다른 글
[톰캣] access-log X-Forwarded-For 설정 (0) | 2021.12.28 |
---|---|
JAVA 1.8 환경에서 MSSQL 접속 시 에러 해결 (0) | 2021.12.01 |
스프링 javax 에러 / 구형 스프링 프로젝트 javax 문제 / (0) | 2021.12.01 |
스프링 배치 Spring Batch [2] Hello Spring Batch 실행해보기 (0) | 2020.01.27 |
HTTP Range Requests 를 이용한 스프링 비디오 스트리밍 (1) | 2020.01.09 |
WRITTEN BY
,