다음과 같이 heap 정보를 볼 때, 에러가 발생할 때는
# jmap -heap 16054
Attaching to process ID 16054, please wait...
Heap Usage: |
/etc/yum.repo.d/etc/yum.repos.d
아래에 아래와 같이 xxxx.repo 파일을 만들고
# CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. You should use this for CentOS updates # unless you are manually picking other mirrors. # # All debug packages from all the various CentOS-5 releases # are merged into a single repo, split by BaseArch # # Note: packages in the debuginfo repo are currently not signed # [debug] name=CentOS-6 - Debuginfo baseurl=http://debuginfo.centos.org/6/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-Debug-6 enabled=1 |
다음과 같이 버전에 맞는 debuginfo 를 설치하면 된다.
# debuginfo-install java-1.8.0-openjdk
아래 패키지만 설치하면 되는지 알고, 따로 rpm 을 받아서 설치해 보았는데
의존성 걸린 패키지가 많아서인지, 한 개만 설치해서는 정상작동이 안 된다.
java-1.8.0-openjdk-debuginfo-1.8.0.171-8.b10.el6_9.x86_64
설치하고 나서 사용하면 다음과 같이 나오지 않는 정보가 상세히 보인다
Attaching to process ID 25923, please wait... Debugger attached successfully. Server compiler detected. JVM version is 25.171-b10 using thread-local object allocation. Garbage-First (G1) GC with 3 thread(s) Heap Configuration: MinHeapFreeRatio = 40 MaxHeapFreeRatio = 70 MaxHeapSize = 4294967296 (4096.0MB) NewSize = 1363144 (1.2999954223632812MB) MaxNewSize = 1073741824 (1024.0MB) OldSize = 5452592 (5.1999969482421875MB) NewRatio = 2 SurvivorRatio = 8 MetaspaceSize = 134217728 (128.0MB) CompressedClassSpaceSize = 260046848 (248.0MB) MaxMetaspaceSize = 268435456 (256.0MB) G1HeapRegionSize = 2097152 (2.0MB) Heap Usage: G1 Heap: regions = 2048 capacity = 4294967296 (4096.0MB) used = 167772160 (160.0MB) free = 4127195136 (3936.0MB) 3.90625% used G1 Young Generation: Eden Space: regions = 80 capacity = 226492416 (216.0MB) used = 167772160 (160.0MB) free = 58720256 (56.0MB) 74.07407407407408% used Survivor Space: regions = 0 capacity = 0 (0.0MB) used = 0 (0.0MB) free = 0 (0.0MB) 0.0% used G1 Old Generation: regions = 0 capacity = 4068474880 (3880.0MB) used = 0 (0.0MB) free = 4068474880 (3880.0MB) 0.0% used 12875 interned Strings occupying 1104952 bytes. |