[root@hwangtest scripts]# jmap -heap 13525
Attaching to process ID 13525, please wait...
Error attaching to process: sun.jvm.hotspot.runtime.VMVersionMismatchException: Supported versions are 25.332-b09. Target VM is 25.242-b08
sun.jvm.hotspot.debugger.DebuggerException: sun.jvm.hotspot.runtime.VMVersionMismatchException: Supported versions are 25.332-b09. Target VM is 25.242-b08
at sun.jvm.hotspot.HotSpotAgent.setupVM(HotSpotAgent.java:435)
at sun.jvm.hotspot.HotSpotAgent.go(HotSpotAgent.java:305)
at sun.jvm.hotspot.HotSpotAgent.attach(HotSpotAgent.java:140)
at sun.jvm.hotspot.tools.Tool.start(Tool.java:185)
at sun.jvm.hotspot.tools.Tool.execute(Tool.java:118)
at sun.jvm.hotspot.tools.HeapSummary.main(HeapSummary.java:50)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sun.tools.jmap.JMap.runTool(JMap.java:201)
at sun.tools.jmap.JMap.main(JMap.java:130)
Caused by: sun.jvm.hotspot.runtime.VMVersionMismatchException: Supported versions are 25.332-b09. Target VM is 25.242-b08
at sun.jvm.hotspot.runtime.VM.checkVMVersion(VM.java:227)
at sun.jvm.hotspot.runtime.VM.<init>(VM.java:294)
at sun.jvm.hotspot.runtime.VM.initialize(VM.java:370)
at sun.jvm.hotspot.HotSpotAgent.setupVM(HotSpotAgent.java:431)
... 11 more
VM버전 불일치.
1. 시스템에 JVM이 두 개 이상 깔려있음.
2. WAS 프로세스을 수동실행하는 계정과 크론을 실행하는 계정의 PATH가 다름.
3. 각 계정이 서로 다른 JVM을 실행함 pid 계정확인
yum install java-1.8.0* 시 설치경로 아래와같음 JAVA_HOME 경로 맞추어주기
/usr/lib/jvm/java-1.8.0

'에러모음' 카테고리의 다른 글
| HTTP 응답코드 502 (0) | 2023.01.07 |
|---|---|
| Java was started but returened exit code=13 (0) | 2022.08.06 |
| 502 Bad GateWay 에러 The proxy server received an invalid response from an upstream server. (0) | 2022.07.13 |
| yum 패키지 정리 (0) | 2022.07.12 |
| bash: netstat , ps,ll: command not found (0) | 2022.06.21 |