I\'m trying to use the jmap command on my CentOS server but it keeps telling me that the command was not found even though I have the JDK installed. >
jmap
CentOS
My situation was a little strange (running inside the openjdk:8-jre Docker image), but this combination worked
openjdk:8-jre
cat /etc/debian_version # 8.6 apt install -t jessie-backports openjdk-8-jre-headless ca-certificates-java apt-get install -f -y openjdk-8-jdk-headless apt-get install -f -y openjdk-8-dbg