1,环境变量配置问题
[deploy@SVR5340HP360 bin]$ jmap
-bash: jmap: command not found[deploy@SVR5340HP360 bin]$ whereis java
java: /usr/bin/java1.8 /usr/bin/java /usr/bin/java1.7
[deploy@SVR5340HP360 bin]$ ll /usr/bin/java1.7
lrwxrwxrwx 1 root root 30 Mar 9 2016 /usr/bin/java1.7 -> /usr/java/jdk1.7.0_51/bin/java
[deploy@SVR5340HP360 bin]$ /usr/java/jdk1.7.0_51/bin/jmap
Usage:
jmap [option] <pid>
(to connect to running process)
jmap [option] <executable <core>
(to connect to a core file)
jmap [option] [server_id@]<remote server IP or hostname>
(to connect to remote debug server)