-
-
Save punkmonday/34de618488ac4e46bf7628f408f18557 to your computer and use it in GitHub Desktop.
linux server jre jcmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo /usr/lib/jdk1.8.0_92/bin/jcmd | |
JFR.stop | |
JFR.start | |
JFR.dump | |
JFR.check | |
VM.native_memory | |
VM.check_commercial_features | |
VM.unlock_commercial_features | |
ManagementAgent.stop | |
ManagementAgent.start_local | |
ManagementAgent.start | |
GC.rotate_log | |
Thread.print | |
GC.class_stats | |
GC.class_histogram | |
GC.heap_dump | |
GC.run_finalization | |
GC.run | |
VM.uptime | |
VM.flags | |
VM.system_properties | |
VM.command_line | |
VM.version | |
# 是threaddump | |
Thread.print | |
# | |
sudo /usr/lib/jdk1.8.0_92/bin/jcmd 9750 JFR.start name=MyRecording settings=profile delay=20s duration=2m filename=myrecording.jfr | |
# 用java mission control运行jfr文件 | |
sudo /usr/lib/jdk1.8.0_92/bin/jcmd 9750 VM.unlock_commercial_features |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment