――I put it together for myself
You can see the process list of java
$JAVA_HOME/bin/jps
# -See more details in v. Options passed at startup, etc.
97312 RemoteMavenServer
97399 WSSampleMain
97398 Launcher
97403 Jps
81229 sbt-launch.jar
97005
97324 NailgunRunner
$JAVA_HOME/bin/jstack $Process number
# -You can get it even in the process that hangs in F
heap dump(jmap) Can be taken with the jmap command
$JAVA_HOME/bin/jmap -histo $Process number
#What and how many objects are in memory? What is the size? Get out
$JAVA_HOME/bin/jmap -heap $Process number
#You can see the situation of heap
jcmd
https://www.ibm.com/developerworks/jp/java/library/j-5things8.html
JMC ――You can see the stack, heap, etc. in GUI.
jvm-mon --Graphical view of CPU usage, processes, Threads and heap specifications on the terminal
java -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=$Discharge destination directory
--When you say GC, other than Full GC
--Full GC is as its name suggests
--~~ K-> ~~ K
is the amount of memory used before and after
java -verbose:gc
java -Xloggc:./gclog/gc.log
Recommended Posts