본문 바로가기
작업실

JPS 사용법 - java

by 솥에 2013. 6. 20.
반응형

jps - Java Virtual Machine Process Status Tool


jps ?

- jvm 위에서 돌아가는 프로세스를 확인 하는 툴



※ 최신의 JDK 버전에 포함 되어있습니다.

   windows 98, ME의 플랫폼에서는 지원 하지 않습니다.

사용법 


 jps [ options ] [ hostid ]


ex) jps -help (- + 옵션)


jps = jps -V


PID 와 프로세스 명확인

Output the arguments passed to the JVM through the flags file (the .hotspotrc file or the 


file specified by the -XX:Flags=<filename> argument).

jps = jps -V






jps -help


jps 사용법 



jps -q 


Suppress the output of the class name, JAR file name, and arguments passed to the main 

method, producing only a list of local VM identifiers.



jps -m

Output the arguments passed to the main method. The output may be null for embedded JVMs.

메인메소드명을 출력





jps -l

Output the full package name for the application's main class or the full path name to the 

application's JAR file.


사용하고 있는 JAR path명 출력





jps -v

Output the arguments passed to the JVM.




========================================================


Windows 에서 PID를 확인 하고 taskkill 명령어으로 해당 PID를 종료 후 패치나 강제종료를 할수있습니다.


하는 방법


1. JPS로 JAVA PID 확인 


2. cmd -> taskkill로 프로세스 킬


3. JPS 확인




반응형